JDK-8145025 : compiler/compilercontrol/commandfile/CompileOnlyTest.java and compiler/compilercontrol/commands/CompileOnlyTest.java fail: java.lang.RuntimeException: FAILED: method ... compilable: false, but should: true
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-12-09
  • Updated: 2017-07-26
  • Resolved: 2016-01-15
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 9
9 b105Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
 stderr: [Exception in thread "main" java.lang.RuntimeException: FAILED: method public void pool.sub.Klass.method(int,java.lang.String[],java.lang.Integer,byte[],double[][]) compilable: false, but should: true on required level: 1 (assert failed: false == true)
	at jdk.test.lib.Asserts.error(Asserts.java:444)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:371)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:166)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:140)
	at compiler.compilercontrol.share.actions.CompileAction.checkCompilation(CompileAction.java:83)
	at compiler.compilercontrol.share.actions.CompileAction.checkCompiled(CompileAction.java:63)
	at compiler.compilercontrol.share.actions.BaseAction.lambda$check$2(BaseAction.java:141)
	at java.util.ArrayList.forEach(ArrayList.java:1262)
	at compiler.compilercontrol.share.actions.BaseAction.check(BaseAction.java:139)
	at compiler.compilercontrol.share.actions.BaseAction.communicate(BaseAction.java:100)
	at compiler.compilercontrol.share.actions.BaseAction.main(BaseAction.java:59)
]

Comments
verified by nightly testing
26-07-2017

Can you get this done before the holiday break?
22-12-2015

Yes, I'll provide a fix soon.
16-12-2015

[~ppunegov], are you working on a fix? I'm not sure if we can push up with that bug still being unresolved.
16-12-2015

I guess this could be related to my recent fix to exclude in CompilerControl tests. Looks like it breaks CompileOnly. I'll take a look and make initial evaluation.
09-12-2015