MethodHandles
Rémi Forax
forax at univ-mlv.fr
Tue Oct 7 05:42:25 PDT 2008
I've continue to implement the backport last evening
and I hope to be able to publish it in 2 weeks (more or less).
Some remarks:
- there is a bug in the doc comments of MethodHandles.insertArgument(),
"The pos may range between zero and N (inclusively)"
Hum, you forget to take a look into the mirror :)
insert an argument is equivalent to drop a type in the methodType of mh,
so pos should be between 0 and N exclusively.
- There are 3 methods find*, findSpecial, findStatic and findVirtual
but there is no findDynamic that makes a invokedynamic call.
And the *big* question :
Currently, the spec allows a user to create a class that inherits from
MethodHandle
to create it's own method handle.
What is expected if a user write a methdo void invoke(int, int) and
returns a
different MethodType by example, (Object,Object)boolean ?
cheers,
Rémi
More information about the mlvm-dev
mailing list