From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3728 invoked by alias); 7 Apr 2003 20:32:48 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 3678 invoked from network); 7 Apr 2003 20:32:47 -0000 Received: from unknown (HELO merc62.na.sas.com) (149.173.6.49) by sources.redhat.com with SMTP; 7 Apr 2003 20:32:47 -0000 Received: from merc18.na.sas.com ([10.16.12.224]) by 10.19.11.46 with InterScan Messaging Security Suite; Mon, 07 Apr 2003 16:32:46 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6410.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: FW: Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION Date: Mon, 07 Apr 2003 20:32:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Patrick Ellis" To: "mauve-discuss@sources.redhat.com" <'mauve-discuss@sources.redhat.com'> X-SW-Source: 2003-q2/txt/msg00006.txt.bz2 Pat Ellis SDE Build and Test Team Phone: (919) 531-0355=20=20=20 R2263 Patrick.Ellis@sas.com SAS... The Power to Know > -----Original Message----- > From: Patrick Ellis=20=20 > Sent: Monday, April 07, 2003 4:31 PM > To: 'mauve-discuss@sources.redhat.com' > Subject: Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATI= VEARRAYSIZEEXCEPTION >=20 >=20 > Question about JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION. This i= s part of the testcase in java.lang.=20 >=20 > int val =3D 0; > Object x =3D null; > val =3D 0; > try > { > x =3D new int[0][-1]; > val =3D 1; > } > catch (NegativeArraySizeException e) > { > val =3D 2; > e.printStackTrace(System.out); >=20 > } >=20 > the testcase should throw an NegativeArraySizeException but because the n= egative -1 is the second element and 0 is the first element=20 > some JVMs fail to throw the exception. Should the testcase be changed fro= m x =3D new int[0][-1]; -----> x =3D new int[1][-1]; >=20 >=20 > Pat Ellis > SDE Build and Test Team > Phone: (919) 531-0355=20=20=20 > R2263 Patrick.Ellis@sas.com > SAS... The Power to Know >=20