JDK-8001105 : findVirtual of Object[].clone produces internal error
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 7,8-pool
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-18
  • Updated: 2014-10-13
  • Resolved: 2013-10-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u71Fixed 8 b112Fixed
Description
http://mail.openjdk.java.net/pipermail/mlvm-dev/2012-October/005035.html

public class JDKBug {
   public static void main(String[] args) throws Throwable {
     MethodHandles.lookup().findVirtual(Object[].class, "clone", 
MethodType.methodType(Object.class));
   }
}

Comments
$ ~/re/jdk/7u65/promoted/latest/binaries/macosx-x64/bin/java -showversion Test8001105 java version "1.7.0_65-ea" Java(TM) SE Runtime Environment (build 1.7.0_65-ea-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) Exception in thread "main" java.lang.InternalError at java.lang.invoke.MethodHandle.viewAsType(MethodHandle.java:1254) at java.lang.invoke.MethodHandles$Lookup.restrictReceiver(MethodHandles.java:1234) at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:1279) at java.lang.invoke.MethodHandles$Lookup.getDirectMethod(MethodHandles.java:1238) at java.lang.invoke.MethodHandles$Lookup.findVirtual(MethodHandles.java:649) at Test8001105.main(Test8001105.java:5)
03-03-2014

This fix needs to be backported to 7u.
03-03-2014