You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/03/01 16:08:51 UTC

[jira] Assigned: (HARMONY-2853) [classlib][swing] j.s.plaf.basic.BasicScrollBarUI.configureScrollBarColors() doesn't throw NPE

     [ https://issues.apache.org/jira/browse/HARMONY-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-2853:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing] j.s.plaf.basic.BasicScrollBarUI.configureScrollBarColors() doesn't throw NPE
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2853
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2853
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2853-BasicScrollBarUI.patch, Harmony-2853-BasicScrollBarUITest.patch
>
>
> ======= Code to Reproduce =======
> import javax.swing.plaf.basic.BasicScrollBarUI;
> public class Test {
>     private static class TestBasicScrollBarUI extends BasicScrollBarUI {
>         @Override
>         public void configureScrollBarColors() {
>             super.configureScrollBarColors();
>         }
>     }
>     public static void main(String[] args) {
>         TestBasicScrollBarUI sbr = new TestBasicScrollBarUI();
>         sbr.configureScrollBarColors();
>     }
> }
> ======= end of code =======
> Harmony works silently, but RI throws NPE:
> java.lang.NullPointerException
> 	at javax.swing.LookAndFeel.installColors(LookAndFeel.java:56)
> 	at javax.swing.plaf.basic.BasicScrollBarUI.configureScrollBarColors(BasicScrollBarUI.java:113)
> 	at Test$TestBasicScrollBarUI.configureScrollBarColors(Test.java:7)
> 	at Test.main(Test.java:13)

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