You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/12/18 12:49:22 UTC
[jira] Created: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
[classlib][swing] javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb) throws NPE while RI does not
--------------------------------------------------------------------------------------------------------------------
Key: HARMONY-2767
URL: http://issues.apache.org/jira/browse/HARMONY-2767
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Denis Kishenko
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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov updated HARMONY-2767:
-------------------------------------
Patch Info: [Patch Available]
> [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
> 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
[jira] Commented: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464308 ]
Vasily Zakharov commented on HARMONY-2767:
------------------------------------------
Thanks Alexei, the patch is fine.
> [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
[jira] Commented: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463621 ]
Vasily Zakharov commented on HARMONY-2767:
------------------------------------------
The exception is thrown because the class wasn't properly initialized and its layoutManager field is null. The field is normally initialized by installUI() call, and if the following statement:
localBasicSplitPaneUI.installUI(new javax.swing.JSplitPane());
is added to the test before getMaximumSize() call, the problem disappears.
The problem is actual not only for getMaximumSize(), but for some other methods also.
> [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
>
> 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
[jira] Assigned: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Alexei Zakharov (JIRA)" <ji...@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
[jira] Commented: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463640 ]
Vasily Zakharov commented on HARMONY-2767:
------------------------------------------
Attached fix and test patches. The returned value was made up using black box testing of RI.
Also attached a make patch to remove javax.swing.plaf.basic.BasicSplitPaneUITest from exclude list.
I'm not sure if this should be applied permanently as another test case it contains fails for now (independently of this issue).
> [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
> 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
[jira] Closed: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-2767.
------------------------------------
verified by Vasily
> [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
[jira] Updated: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov updated HARMONY-2767:
-------------------------------------
Attachment: Harmony-2767-Make.patch
Harmony-2767-Test.patch
Harmony-2767.patch
> [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
> 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
[jira] Commented: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463304 ]
Vasily Zakharov commented on HARMONY-2767:
------------------------------------------
I'll look into this issue.
> [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
>
> 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
[jira] Resolved: (HARMONY-2767) [classlib][swing]
javax.swing.plaf.basic.BasicSplitPaneUI.getMaximumSize(JScrollBar sb)
throws NPE while RI does not
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov resolved HARMONY-2767.
--------------------------------------
Resolution: Fixed
Denis, Vasily, patches were applied at the revision r495672. Thanks. Please verify.
> [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