JDK-8205614 : NestMates tests failing in CI jdk11-jdk.931
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-06-25
  • Updated: 2018-08-16
  • Resolved: 2018-06-25
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 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Description
The following two NestMates tests are failing in CI jdk11-jdk.931:

runtime/Nestmates/privateConstructors/TestConstructorHierarchy.java
runtime/Nestmates/membership/TestNestmateMembership.java

So far the failures have occurred on MacOSX and Linux-X64.

privateConstructors/TestConstructorHierarchy.java on MacOSX:

----------System.err:(12/936)----------
java.lang.Error: Unexpected IllegalAccessError: java.lang.IllegalAccessError: class TestConstructorHierarchy tried to access method ExternalSuper.<init>()V (TestConstructorHierarchy and ExternalSuper are in unnamed module of loader java.net.URLClassLoader @4f51b3e0)
	at TestConstructorHierarchy.main(TestConstructorHierarchy.java:57)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
	at java.base/java.lang.Thread.run(Thread.java:834)

JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.Error: Unexpected IllegalAccessError: java.lang.IllegalAccessError: class TestConstructorHierarchy tried to access method ExternalSuper.<init>()V (TestConstructorHierarchy and ExternalSuper are in unnamed module of loader java.net.URLClassLoader @4f51b3e0)


test result: Failed. Execution failed: `main' threw exception: java.lang.Error: Unexpected IllegalAccessError: java.lang.IllegalAccessError: class TestConstructorHierarchy tried to access method ExternalSuper.<init>()V (TestConstructorHierarchy and ExternalSuper are in unnamed module of loader java.net.URLClassLoader @4f51b3e0)


membership/TestNestmateMembership.java on MacOSX:

----------System.err:(15/1965)----------
java.lang.Error: Wrong IllegalAccessError: "class TestNestmateMembership$Caller tried to access method TestNestmateMembership$TargetNoHost.m()V (TestNestmateMembership$Caller and TestNestmateMembership$TargetNoHost are in unnamed module of loader 'app')" does not contain "tried to access method TestNestmateMembership$TargetNoHost.m()V from class TestNestmateMembership$Caller"
	at TestNestmateMembership.check_expected(TestNestmateMembership.java:1748)
	at TestNestmateMembership.test_NoHostInvoke(TestNestmateMembership.java:681)
	at TestNestmateMembership.main(TestNestmateMembership.java:619)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:834)

JavaTest Message: Test threw exception: java.lang.Error: Wrong IllegalAccessError: "class TestNestmateMembership$Caller tried to access method TestNestmateMembership$TargetNoHost.m()V (TestNestmateMembership$Caller and TestNestmateMembership$TargetNoHost are in unnamed module of loader 'app')" does not contain "tried to access method TestNestmateMembership$TargetNoHost.m()V from class TestNestmateMembership$Caller"
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: Wrong IllegalAccessError: "class TestNestmateMembership$Caller tried to access method TestNestmateMembership$TargetNoHost.m()V (TestNestmateMembership$Caller and TestNestmateMembership$TargetNoHost are in unnamed module of loader 'app')" does not contain "tried to access method TestNestmateMembership$TargetNoHost.m()V from class TestNestmateMembership$Caller"


The Linux-X64 versions of the failure look the same.

These are tier1 test failures so starting at P2.
Also, these failures are new so tagged with 'promotion_blocker'.
Comments
Tests need to be updated for changes made by: JDK-8169559 Add class loader names to relevant VM messages
25-06-2018