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/07 09:49:22 UTC
[jira] Created: (HARMONY-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
[classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
--------------------------------------------------------------------------------------------------------------
Key: HARMONY-2511
URL: http://issues.apache.org/jira/browse/HARMONY-2511
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Denis Kishenko
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
There is no mention of any exception in the specification. Compatibility issue.
Test for reproducing:
import junit.framework.TestCase;
import javax.swing.*;
import javax.swing.plaf.basic.BasicMenuItemUI;
public class Test extends TestCase {
public void testcase1() {
BasicMenuItemUI m = new BasicMenuItemUI();
try {
m.getMaximumSize(null);
fail("NPE should be thrown");
} catch ( NullPointerException e) {
//expected
}
}
}
Output on Sun 1.5
=================
.
Time: 0.015
OK (1 test)
Output on Harmony:
==================
.F
Time: 0.062
There was 1 failure:
1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
at Test.testcase1(Test.java:10)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
FAILURES!!!
Tests run: 1, Failures: 1, Errors: 0
--
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-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov updated HARMONY-2511:
-------------------------------------
Patch Info: [Patch Available]
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Attachments: Harmony-2511-BasicMenuItemUI.patch, Harmony-2511-BasicMenuItemUITest.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
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-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-2511.
------------------------------------
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2511-BasicMenuItemUI.patch, Harmony-2511-BasicMenuItemUITest.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "sergey krivenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sergey krivenko updated HARMONY-2511:
-------------------------------------
Attachment: Harmony-2511-BasicMenuItemUI.patch
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Attachments: Harmony-2511-BasicMenuItemUI.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
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-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov reassigned HARMONY-2511:
----------------------------------------
Assignee: Alexei Zakharov
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2511-BasicMenuItemUI.patch, Harmony-2511-BasicMenuItemUITest.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov resolved HARMONY-2511.
--------------------------------------
Resolution: Duplicate
Fixed in HARMONY-2695
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2511-BasicMenuItemUI.patch, Harmony-2511-BasicMenuItemUITest.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-2511) [classlib][swing]
javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null
while RI throws NPE
Posted by "sergey krivenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sergey krivenko updated HARMONY-2511:
-------------------------------------
Attachment: Harmony-2511-BasicMenuItemUITest.patch
> [classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2511
> URL: https://issues.apache.org/jira/browse/HARMONY-2511
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Denis Kishenko
> Attachments: Harmony-2511-BasicMenuItemUI.patch, Harmony-2511-BasicMenuItemUITest.patch
>
>
> javax.swing.plaf.basic.BasicMenuItemUI.getMaximumSize(null) returns null while RI throws NPE.
> There is no mention of any exception in the specification. Compatibility issue.
> Test for reproducing:
> import junit.framework.TestCase;
> import javax.swing.*;
> import javax.swing.plaf.basic.BasicMenuItemUI;
> public class Test extends TestCase {
> public void testcase1() {
> BasicMenuItemUI m = new BasicMenuItemUI();
> try {
> m.getMaximumSize(null);
> fail("NPE should be thrown");
> } catch ( NullPointerException e) {
> //expected
> }
> }
> }
> Output on Sun 1.5
> =================
> .
> Time: 0.015
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.062
> There was 1 failure:
> 1) testcase1(Test)junit.framework.AssertionFailedError: NPE should be thrown
> at Test.testcase1(Test.java:10)
> at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1, Failures: 1, Errors: 0
--
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