public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* FW: Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION
@ 2003-04-07 20:32 Patrick Ellis
  2003-04-08 12:07 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Ellis @ 2003-04-07 20:32 UTC (permalink / raw)
  To: mauve-discuss@sources.redhat.com



Pat Ellis
SDE Build and Test Team
Phone:      (919) 531-0355   
R2263     Patrick.Ellis@sas.com
SAS...  The Power to Know

>  -----Original Message-----
> From: 	Patrick Ellis  
> Sent:	Monday, April 07, 2003 4:31 PM
> To:	'mauve-discuss@sources.redhat.com'
> Subject:	Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION
> 
> 
> Question about JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION. This is part of the testcase in java.lang. 
> 
>     int val = 0;
>       Object x = null;
>       val = 0;
>       try
>         {
>           x = new int[0][-1];
>           val = 1;
>         }
>       catch (NegativeArraySizeException e)
>         {
>           val = 2;
>           e.printStackTrace(System.out);
> 
>         }
> 
> the testcase should throw an NegativeArraySizeException but because the negative -1 is the second element and 0 is the first element 
> some JVMs fail to throw the exception. Should the testcase be changed from  x = new int[0][-1]; -----> x = new int[1][-1];
> 
> 
> Pat Ellis
> SDE Build and Test Team
> Phone:      (919) 531-0355   
> R2263     Patrick.Ellis@sas.com
> SAS...  The Power to Know
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <F2E670D5036BE14E89473A3FAEDE6ACE0280680F@merc18.na.sas.com>]

end of thread, other threads:[~2003-04-08 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 20:32 FW: Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION Patrick Ellis
2003-04-08 12:07 ` Eric Blake
     [not found] <F2E670D5036BE14E89473A3FAEDE6ACE0280680F@merc18.na.sas.com>
2003-04-08 14:29 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).