JDK-7194613 : api/java_lang/invoke/MethodHandles/Lookup/index.html#ExceptionsTests[findVirtualNSME] fails w/ -esa
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-28
  • Updated: 2012-08-28
  • Resolved: 2012-08-28
Related Reports
Duplicate :  
Description
The following JCK8-b12 testcase:
  api/java_lang/invoke/MethodHandles/Lookup/index.html#ExceptionsTests[findVirtualNSME]
fails under JDK8-b52 when '-esa' option is specified:
--- cut ---
Expected exception java.lang.NoSuchMethodException was not thrown by testcase "findVirtualNSME"
"java.lang.AssertionError" was thrown instead
java.lang.AssertionError
	at java.lang.invoke.MemberName.referenceKindIsConsistent(MemberName.java:233)
	at java.lang.invoke.MemberName.setFlags(MemberName.java:312)
	at java.lang.invoke.MemberName.init(MemberName.java:455)
	at java.lang.invoke.MemberName.<init>(MemberName.java:635)
	at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1031)
	at java.lang.invoke.MethodHandles$Lookup.findVirtual(MethodHandles.java:652)
	at javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.ExceptionsTests.findVirtualNSME(ExceptionsTests.java:564)
	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:474)
	at com.sun.tck.lib.tgf.Util.invokeMethod(Util.java:352)
	at com.sun.tck.lib.tgf.Runner.invokeTestCase(Runner.java:276)
	at com.sun.tck.lib.tgf.Runner.performRunWithData(Runner.java:246)
	at com.sun.tck.lib.tgf.Runner.getDataAndRun(Runner.java:185)
	at com.sun.tck.lib.tgf.Runner.executeTestMethods(Runner.java:130)
	at com.sun.tck.lib.tgf.Runner.run(Runner.java:116)
	at com.sun.tck.lib.tgf.Runner.execute(Runner.java:108)
	at com.sun.tck.lib.tgf.TGFTest.run(TGFTest.java:58)
	at com.sun.tck.lib.tgf.TGFTest.run(TGFTest.java:64)
	at javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.ExceptionsTests.main(ExceptionsTests.java:59)
Testcase "findVirtualNSME" failed with arguments [class javasoft.sqe.tests.api.java.lang.invoke.MethodHandles.Lookup.TestCls, <init>, ()int]
--- cut ---

The failure is not reproducible without '-esa' option.