RFR: 7044282: (reflect) Class.forName and Array.newInstance are inconsistent regarding multidimensional arrays

Joel Borggren-Franck joel.franck at oracle.com
Thu Oct 10 12:46:22 UTC 2013


Hi,

Joe, Paul, agreed the test could be better. Improved it (without using
streams) and also added a bug id tag to the old Arrays.newInstance test.

Thanks for the comments.

Webrev here: http://cr.openjdk.java.net/~jfranck/7044282/webrev.01/

cheres
/Joel

On 2013-10-09, Joel Borggren-Franck wrote:
> Hi
> 
> Please review this spec update and test for getting array classes and
> instances of more dimensions than the class file can express or the VM
> can handle.
> 
> Array.newInstance have a test for arrays of more dimensions than 255,
> this patch adds a test for Class.forName as well.
> 
> Also the javadoc for Array.newInstance are clarified.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-7044282
> Webrev: http://cr.openjdk.java.net/~jfranck/7044282/webrev.00/
> 
> cheers
> /Joel




More information about the core-libs-dev mailing list