JDK-7049115 : java/lang/invoke/6998541/Test6998541.java fails with JDK 7 b143
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-05-27
  • Updated: 2011-06-22
  • Resolved: 2011-06-22
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.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Description
The log is:

KIND=cast DO_CASTS=true N=100000
Exception in thread "main" java.lang.ClassCastException: required class java.lang.Float but encountered class java.lang.Boolean
        at java.lang.invoke.MethodHandleNatives.raiseException(MethodHandleNatives.java:378)
        at java.lang.invoke.FromGeneric$A1.invoke_F1(FromGeneric.java:522)
        at java.lang.invoke.FilterGeneric$F2.invoke_V1(FilterGeneric.java:537)
        at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
        at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:641)
        at java.lang.invoke.ToGeneric$A1.invoke_F(ToGeneric.java:651)
        at java.lang.invoke.FromGeneric$A2.invoke_F2(FromGeneric.java:534)
        at java.lang.invoke.FilterGeneric$F1.invoke_F1(FilterGeneric.java:517)
        at java.lang.invoke.FilterGeneric$F2.invoke_V1(FilterGeneric.java:537)
        at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
        at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:641)
        at java.lang.invoke.ToGeneric$A1.invoke_F(ToGeneric.java:651)
        at Test6998541.boolean2prim(Test6998541.java:211)
        at Test6998541.doboolean(Test6998541.java:67)
        at Test6998541.main(Test6998541.java:54)

or

java.lang.ClassCastException: required class java.lang.Float but encountered class java.lang.Boolean
	at java.lang.invoke.MethodHandleNatives.raiseException(MethodHandleNatives.java:378)
	at java.lang.invoke.FromGeneric$A1.invoke_F1(FromGeneric.java:522)
	at java.lang.invoke.FilterGeneric$F2.invoke_V1(FilterGeneric.java:537)
	at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
	at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:641)
	at java.lang.invoke.ToGeneric$A1.invoke_F(ToGeneric.java:651)
	at java.lang.invoke.FromGeneric$A2.invoke_F2(FromGeneric.java:534)
	at java.lang.invoke.FilterGeneric$F1.invoke_F1(FilterGeneric.java:517)
	at java.lang.invoke.FilterGeneric$F2.invoke_V1(FilterGeneric.java:537)
	at java.lang.invoke.ToGeneric$A1.target(ToGeneric.java:639)
	at java.lang.invoke.ToGeneric$A1.targetA1(ToGeneric.java:641)
	at java.lang.invoke.ToGeneric$A1.invoke_F(ToGeneric.java:651)
	at Test6998541.boolean2prim(Test6998541.java:211)
	at Test6998541.doboolean(Test6998541.java:67)
	at Test6998541.main(Test6998541.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)

Reproducible on solaris-sparc with VM options '-client -Xcomp -XX:+StartAttachListener -XX:+UseConcMarkSweepGC'.

Comments
EVALUATION Can reproduce on x86 platforms also with these flags: -XX:+UnlockDiagnosticVMOptions -XX:-UseRicochetFrames This will be fixed by porting ricochet frames to SPARC, which is CR 7045514. Consider closing this as a dup of 7045514.
27-05-2011