Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6663908
Votes 0
Synopsis NegativeArraySizeException is not thrown
Category hotspot:compiler2
Reported Against b10 , b11
Release Fixed hs13(b01)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 6603492 , 6664075
Submit Date 15-FEB-2008
Description
Test execution results are erroneous when C2 with -Xcomp is used.

-Xint / -client / -server -Xmixed: 
[
Tester.var_29 = 2.6356778E38
Tester.var_28 = true
]

-server -Xcomp:
[
Tester.var_29 = 98.0
Tester.var_28 = true
]

I observe such behavior at least on linux-x86/x64 with both JDK 6u10b11 and JDK 7b24.

Testcase is attached.
Posted Date : 2008-02-15 18:01:30.0

HS10 (10.0-b19, jdk6u5-b11) isn't affected.
Posted Date : 2008-03-03 13:33:20.0
Work Around
N/A
Evaluation
A compiled method misses throwing a NegativeArraySizeException.
Posted Date : 2008-03-05 16:34:50.0

The bug only occurs when allocating a multi-dimensional array where the lowest dimension has negative size, all of the higher dimension sizes are constants, and at least one of those higher dimension sizes is zero.

The fix to bug 6603492 tries to optimize some cases of multidimensional array allocations. It fails to cause the NegativeArraySizeException to be thrown when a dimension size is zero.
Posted Date : 2008-03-05 19:48:33.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang