JDK-8209349 : [AOT] InvocationTargetException is not thrown when instance of interface is created.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10,11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-08-10
  • Updated: 2023-07-21
  • Resolved: 2023-07-21
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 12
12Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
please check comments section for steps to reproduce
Comments
Pending graal update
10-09-2018

Fixed upstream: https://github.com/oracle/graal/commit/a985d5b59b93114c75fb9e7b8bc343aa85f399bd
10-09-2018

[~iveresov] Could this be related to JDK-8208673?
07-09-2018

JCK Test Cases Affected tests: RULE "vm/instr/new/new002/new00201m1/new00201m1" any any RULE "vm/instr/new/new002/new00202m1/new00202m1" any any RULE "vm/instr/new/new007/new00702m1/new00702m1" any any
10-08-2018

RULE "vm/classfmt/ins/instr_020/instr_02001m1/instr_02001m1" any any
10-08-2018

ILW = Incorrect execution of compiled code (no error thrown), specialized tests with AOT'ed java.base, don't use AOT = HLM = P3
10-08-2018

TestSuite: JCK 11 runtime Steps to reproduce ==================== 1. download JDK11 Igor internal build 2. set JAVA_HOME and PATH to point to JDK11 build accordingling 3. create java.base aot library using the following command jaotc -J-Xmx7g --compile-for-tiered --info --compile-commands base.txt --output solibs/rameshbase.so --module java.base 4. download and extract the attachment instantiationerror.zip into the current folder. 5. create AOT Library for testcases using the following command contents of "compilecommands/instantiationerror.txt" ====================================== compileOnly javasoft.* jaotc -J-Xmx4g --info -J-cp -Jnewfolder/classes/* --compile-commands compilecommands/instantiationerror.txt --output solibs/instantiationerror.so --directory newfolder/classes --ignore-errors SCENARIO 1: (Without AOT Library, Normal Run) ============================================== java -cp newfolder/classes javasoft.sqe.tests.vm.instr.newX.new002.new00202m1.new00202m1 Passed with runtime exception: java.lang.InstantiationError: javasoft.sqe.tests.vm.instr.newX.new002.new00202m1._new00202m11n SCENARIO 2: (With AOTLibrary, PrintAOT turned off) ================================================== java -XX:+UnlockDiagnosticVMOptions -XX:+UseAOTStrictLoading -XX:AOTLibrary="solibs/instantiationerror.so,solibs/rameshbase.so" -cp newfolder/classes javasoft.sqe.tests.vm.instr.newX.new002.new00202m1.new00202m1 Failed to reject invalid class new00202m11n SCENARIO 3: (With AOTLibrary, PrintAOT turned on) =================================================== java -XX:+UnlockDiagnosticVMOptions -XX:+UseAOTStrictLoading -XX:AOTLibrary="solibs/instantiationerror.so,solibs/rameshbase.so" -cp newfolder/classes javasoft.sqe.tests.vm.instr.newX.new002.new00202m1.new00202m1 > instantiationerror.log
10-08-2018