-
Bug
-
Resolution: Fixed
-
P3
-
11, 17, 21, 22, 23, 24
-
b10
-
generic
-
generic
The signature polymorphic methods in VarHandle need special casing similar to invoke/invokeExact in MethodHandle. The relevant section of the Java SE API specification says that an UnsupportedOperationException is thrown when invoking such a method using reflections. The same wording is used in MethodHandle.
(https://github.com/openjdk/jdk/blob/d7b941640638b35f9ac1ef11cd6bf6ccb795c29a/src/java.base/share/classes/java/lang/invoke/VarHandle.java#L435-L442)
However, the VarHandle methods currently throw an UnsatisfiedLinkError instead.
(https://github.com/openjdk/jdk/blob/d7b941640638b35f9ac1ef11cd6bf6ccb795c29a/src/java.base/share/classes/java/lang/invoke/VarHandle.java#L435-L442)
However, the VarHandle methods currently throw an UnsatisfiedLinkError instead.
- csr for
-
JDK-8335805 Calling VarHandle.{access-mode} methods reflectively throws wrong exception
- Closed
- links to
-
Commit(master) openjdk/jdk/9fe6e231
-
Review(master) openjdk/jdk/20015