JDK-8203835 : Test AotInvokeInterface2AotTest.java failed with duplicate classes for name Lcompiler/calls/common/CallsBase;
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-05-25
  • Updated: 2022-03-19
  • Resolved: 2018-05-28
Related Reports
Duplicate :  
Relates :  
Description
Test compiler/aot/calls/fromAot/AotInvokeInterface2AotTest.java	failed with following error:
 stdout: [Exception in thread "main" java.lang.AssertionError: duplicate classes for name Lcompiler/calls/common/CallsBase;
	at jdk.aot/jdk.tools.jaotc.AOTCompiledClass.getAOTKlassData(AOTCompiledClass.java:341)
	at jdk.aot/jdk.tools.jaotc.AOTCompiledClass.addFingerprintKlassData(AOTCompiledClass.java:371)
	at jdk.aot/jdk.tools.jaotc.CompiledMethodInfo.addDependentKlassData(CompiledMethodInfo.java:295)
	at jdk.aot/jdk.tools.jaotc.AOTCompiledClass.addAOTKlassData(AOTCompiledClass.java:360)
	at jdk.aot/jdk.tools.jaotc.DataBuilder.prepareData(DataBuilder.java:141)
	at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:188)
	at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:101)
	at jdk.aot/jdk.tools.jaotc.Main.main(Main.java:80)
];
 stderr: []
 exitValue = 1

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:396)
	at compiler.aot.AotCompiler.main(AotCompiler.java:79)
	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:832)
Comments
This is a duplicate of JDK-8201248.
28-05-2018

Test is executed without any additional options, failed in JDK11 b14 fastdebug. Failure is highly intermittent.
25-05-2018