From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13591 invoked by alias); 8 Apr 2003 12:07:44 -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 13584 invoked from network); 8 Apr 2003 12:07:43 -0000 Received: from unknown (HELO email2.byu.edu) (128.187.22.134) by sources.redhat.com with SMTP; 8 Apr 2003 12:07:43 -0000 Received: from email.byu.edu ([10.7.224.202]) by EMAIL1.BYU.EDU (PMDF V6.2 #30538) with ESMTPA id <01KUH3DIQ17A8XJ8TS@EMAIL1.BYU.EDU> for mauve-discuss@sources.redhat.com; Tue, 08 Apr 2003 06:07:21 -0600 (MDT) Date: Tue, 08 Apr 2003 12:07:00 -0000 From: Eric Blake Subject: Re: FW: Question about Java Lang testcase JAVA.LANG.REFLECT.ARRAY.NEGATIVEARRAYSIZEEXCEPTION To: Patrick Ellis Cc: mauve-discuss@sources.redhat.com Message-id: <3E92BBAE.6000609@email.byu.edu> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 References: X-SW-Source: 2003-q2/txt/msg00010.txt.bz2 No. Sun admits that their VM is buggy for not throwing the exception in this case (search their BugParade database). Patrick Ellis wrote: >>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]; -- This signature intentionally left boring. Eric Blake ebb9@email.byu.edu BYU student, free software programmer