Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 54398 invoked from network); 12 Jan 2007 18:09:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 18:09:49 -0000 Received: (qmail 5752 invoked by uid 500); 12 Jan 2007 18:09:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 5645 invoked by uid 500); 12 Jan 2007 18:09:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 5636 invoked by uid 99); 12 Jan 2007 18:09:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 10:09:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 10:09:48 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C99EC71430D for ; Fri, 12 Jan 2007 10:09:27 -0800 (PST) Message-ID: <8231146.1168625367822.JavaMail.jira@brutus> Date: Fri, 12 Jan 2007 10:09:27 -0800 (PST) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-2767) [classlib][swing] javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb) throws NPE while RI does not In-Reply-To: <18685212.1166442562590.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov reassigned HARMONY-2767: ---------------------------------------- Assignee: Alexei Zakharov > [classlib][swing] javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb) throws NPE while RI does not > -------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2767 > URL: https://issues.apache.org/jira/browse/HARMONY-2767 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > Assigned To: Alexei Zakharov > Attachments: Harmony-2767-Make.patch, Harmony-2767-Test.patch, Harmony-2767.patch > > > Harmony throws unspecified NPE for javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb) while RI works silently. > junit test for reproducing: > import junit.framework.TestCase; > import javax.swing.JScrollBar; > import java.awt.Dimension; > import javax.swing.plaf.basic.BasicSplitPaneUI; > public class test extends TestCase > { > public void testcase0() > { > BasicSplitPaneUI localBasicSplitPaneUI = new > BasicSplitPaneUI(); > JScrollBar localJScrollBar = new JScrollBar(); > try > { > localBasicSplitPaneUI.getMaximumSize(localJScrollBar); > System.out.println("works silently"); > assertEquals(true, true); > } > catch (NullPointerException unexpectedException) > {fail("Unspecified "+unexpectedException+" was thrown"); > } > } > } > OUTPUT: > Harmony+j9: > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as > app > licable. > .F > Time: 1.391 > There was 1 failure: > 1) testcase0(test)junit.framework.AssertionFailedError: Unspecified > java.lang.Nu > llPointerException was thrown > at test.testcase0(test.java:19) > at > java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 > ------------------------------------------------------------------------ > SUN > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > .works silently > Time: 0.703 > OK (1 test) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira