You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/03/13 19:28:09 UTC

[jira] Created: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

[classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
---------------------------------------------------------------------

                 Key: HARMONY-3385
                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports, Classlib
            Reporter: Vasily Zakharov
         Attachments: Harmony-3385-fix.patch

UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.

This issue was discovered while trying to run Netbeans.


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


[jira] Assigned: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Alexei Zakharov reassigned HARMONY-3385:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Assigned To: Alexei Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default classloader to load the specified class, that makes loading UI classes accessible by other classloaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Closed: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov closed HARMONY-3385.
------------------------------------


Thanks, Alexei, the patch works fine.


> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Assigned To: Alexei Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default classloader to load the specified class, that makes loading UI classes accessible by other classloaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Updated: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov updated HARMONY-3385:
-------------------------------------

    Description: 
UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default classloader to load the specified class, that makes loading UI classes accessible by other classloaders impossible.

This issue was discovered while trying to run Netbeans.


  was:
UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.

This issue was discovered while trying to run Netbeans.



> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default classloader to load the specified class, that makes loading UI classes accessible by other classloaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Updated: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov updated HARMONY-3385:
-------------------------------------

    Attachment: Harmony-3385-test.patch

Updated test patch.

> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Updated: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov updated HARMONY-3385:
-------------------------------------

    Attachment: Harmony-3385-fix.patch

The attached patch changes getUIClass(comp.getUIClassID()) call to getUIClass(comp.getUIClassID(), comp.getClass().getClassLoader()) to resolve this problem.


> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony-3385-fix.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Commented: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov commented on HARMONY-3385:
------------------------------------------

See also HARMONY-3398, it's similar problem.


> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Resolved: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Alexei Zakharov resolved HARMONY-3385.
--------------------------------------

    Resolution: Fixed

Thanks Vasya, the patch was applied at the revision 519891. Please check.

> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Assigned To: Alexei Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default classloader to load the specified class, that makes loading UI classes accessible by other classloaders impossible.
> This issue was discovered while trying to run Netbeans.

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


[jira] Updated: (HARMONY-3385) [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader

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

Vasily Zakharov updated HARMONY-3385:
-------------------------------------

    Attachment: Harmony-3385-test.patch

Attached a test patch.


> [classlib][swing][netbeans] UIDefaults.getUI() uses wrong classloader
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-3385
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3385
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: Harmony-3385-fix.patch, Harmony-3385-test.patch
>
>
> UIDefaults.getUI(JComponent comp) calls getUIClass(comp.getUIClassID()), and getUIClass(String) uses default class loader to load the specified class, that makes loading UI classes accessible by other class loaders impossible.
> This issue was discovered while trying to run Netbeans.

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