You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander Simbirtsev (JIRA)" <ji...@apache.org> on 2006/12/14 15:07:21 UTC

[jira] Created: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

[classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
-------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2695
                 URL: http://issues.apache.org/jira/browse/HARMONY-2695
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev


javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
returns null while RI throws NPE.
Trere is no mention of any exception in the specification.
Compatibility issue.

Use the following code to reproduce:
import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;

import junit.framework.TestCase;

public class Test extends TestCase {       
    public void testcase1() {
        BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
        try {
            m.getMaximumSize(null);             
            fail("NPE should be thrown");
        } catch ( NullPointerException e) { 
          //expected
        }
    }
    
    public void testcase2() {
        BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
        try {
            m.getMinimumSize(null);             
            fail("NPE should be thrown");
        } catch ( NullPointerException e) { 
          //expected
        }
    }
}

-- 
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

        

Re: [jira] Commented: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by Alexei Zakharov <al...@gmail.com>.
Hi Mark,

Do you mind if I close HARMONY-2695?You 've committed the patch for it
at Jan 14 but neither assigned it nor added yourself to the list of
watchers.

Thanks,

2007/2/1, Vasily Zakharov (JIRA) <ji...@apache.org>:
>
>     [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469465 ]
>
> Vasily Zakharov commented on HARMONY-2695:
> ------------------------------------------
>
> Yes, the patches are really applied as I expected. I agree, let's close it.
>
>
> > [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> > -------------------------------------------------------------------------------------------------------------------------------------------
> >
> >                 Key: HARMONY-2695
> >                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
> >             Project: Harmony
> >          Issue Type: Bug
> >          Components: Classlib
> >            Reporter: Alexander Simbirtsev
> >         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
> >
> >
> > javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> > returns null while RI throws NPE.
> > Trere is no mention of any exception in the specification.
> > Compatibility issue.
> > Use the following code to reproduce:
> > import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> > import junit.framework.TestCase;
> > public class Test extends TestCase {
> >     public void testcase1() {
> >         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
> >         try {
> >             m.getMaximumSize(null);
> >             fail("NPE should be thrown");
> >         } catch ( NullPointerException e) {
> >           //expected
> >         }
> >     }
> >
> >     public void testcase2() {
> >         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
> >         try {
> >             m.getMinimumSize(null);
> >             fail("NPE should be thrown");
> >         } catch ( NullPointerException e) {
> >           //expected
> >         }
> >     }
> > }
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Alexei Zakharov,
Intel ESSD

[jira] Commented: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463357 ] 

Vasily Zakharov commented on HARMONY-2695:
------------------------------------------

I think regression should be added for both BasicCheckBoxMenuItemUI and BasicMenuItemUI classes.


> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463371 ] 

Vasily Zakharov commented on HARMONY-2695:
------------------------------------------

Attached fix and test patches.

Also attached a make patch to remove javax.swing.plaf.basic.BasicMenuItemUITest and javax.swing.plaf.basic.BasicCheckBoxMenuItemUITest from exclude list.


> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess closed HARMONY-2695.
---------------------------------

    Resolution: Fixed

> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
>
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469417 ] 

Alexei Zakharov commented on HARMONY-2695:
------------------------------------------

I cannot reproduce the failure on the most recent snapshot. Looks like Mark has already applied the patch. We may probably close the issue now.  

> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
>
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469465 ] 

Vasily Zakharov commented on HARMONY-2695:
------------------------------------------

Yes, the patches are really applied as I expected. I agree, let's close it.


> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
>
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-2695:
-------------------------------------

    Attachment: Harmony-2695-Make.patch
                Harmony-2695-Test.patch
                Harmony-2695.patch

> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
>
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463300 ] 

Vasily Zakharov commented on HARMONY-2695:
------------------------------------------

I'll look into this issue.


> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2695:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Attachments: Harmony-2695-Make.patch, Harmony-2695-Test.patch, Harmony-2695.patch
>
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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-2695) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463356 ] 

Vasily Zakharov commented on HARMONY-2695:
------------------------------------------

Class  javax.swing.plaf.basic.BasicCheckBoxMenuItemUI inherits methods getMinimumSize() and getMaximumSize() from its ancestor, class javax.swing.plaf.basic.BasicMenuItemUI, and the issue is fully reproducible for that class.

So I'm suggesting changing this issue's summary to:
[classlib][swing] javax.swing.plaf.basic.BasicMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE


> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null) returns null while RI throws NPE
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2695
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2695
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getMinimumSize(null)/getMaximumSize(null)
> returns null while RI throws NPE.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> Use the following code to reproduce:
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMaximumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
>     
>     public void testcase2() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getMinimumSize(null);             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

-- 
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