On 2010.03.25., at 16:57, [email protected] wrote:

> Le 25 mars 2010 à 16:43, Attila Szegedi a écrit :
> 
>> You'll get java.dyn.NoAccessException in more generic cases too, i.e. if. 
>> MethodHandles.findStatic/Virtual/Special fails to find a method of the 
>> expected signature etc.
> 
> Thanks for the hint, but this raises two questions:
>  - where did you get this information from ?

>    (I mean, the javadoc at [1] is not in line with this assertion)

By writing code that failed with it :-)

>  - how the underlying method may not exists, since the method handle is
>    created from a "java.lang.reflect.Method" ?

Hm... unreflect shouldn't be throwing these for signature mismatches, but 
unreflect() will perform a security access check.
> 
> That being said, I took a closer look at the stack trace and found something
> weird related to your hint: the called method is static, but the stack trace
> clearly shows that the JVM tries to find a virtual method.

There :-)

Attila.

> Xavier
> 
> 
> [1] http://download.java.net/jdk7/docs/api/java/dyn/NoAccessException.html

-- 
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to