RFR (XS) JDK-8038076: constraint on multianewarray instruction is not checked since class version 50
christian.tornqvist at oracle.com
Fri Apr 11 13:35:38 UTC 2014
Looks good, thanks for fixing this.
From: hotspot-runtime-dev [mailto:hotspot-runtime-dev-bounces at openjdk.java.net] On Behalf Of Lois Foltan
Sent: Friday, April 11, 2014 9:19 AM
Subject: RFR (XS) JDK-8038076: constraint on multianewarray instruction is not checked since class version 50
Please review the following fix:
Bug: constraint on multianewarray instruction is not checked since class version 50
Summary of fix:
The incorrect placement of a post increment operator was causing the calculated dimensions of a multianewarray bytecode to be 1 greater than reality. The end result of this bug was that a VerifyError would not be correctly generated if the multianewarray bytecode contained an array type descriptor that was 1 dimension smaller than the number of dimensions specified. Thank you to Christian Tornqvist for writing the test case included.
- jtreg hotspot/test/*, JDK java.lang & java.util, vm.quick.testlist, JCK lang tests
- JCK vm in progress
More information about the hotspot-runtime-dev