You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/05/31 08:08:15 UTC

[jira] Created: (HARMONY-4007) [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle

[classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle
--------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-4007
                 URL: https://issues.apache.org/jira/browse/HARMONY-4007
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Leo Li


As spec says:
public static final ResourceBundle getBundle(String baseName)

    Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. Calling this method is equivalent to calling 
getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader()), 
except that getClassLoader() is run with the security privileges of ResourceBundle.

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


[jira] Assigned: (HARMONY-4007) [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle

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

Tim Ellison reassigned HARMONY-4007:
------------------------------------

    Assignee: Tim Ellison

> [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4007
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4007
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>            Assignee: Tim Ellison
>         Attachments: patch-4007.diff
>
>
> As spec says:
> public static final ResourceBundle getBundle(String baseName)
>     Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. Calling this method is equivalent to calling 
> getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader()), 
> except that getClassLoader() is run with the security privileges of ResourceBundle.

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


[jira] Commented: (HARMONY-4007) [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle

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

Tim Ellison commented on HARMONY-4007:
--------------------------------------

Leo,

I disagree with this patch.  If you move the call to "VM.callerClassLoader()" from the contructor then you will no longer find the caller's class loader (since we simply look back two levels in the stack).  That will not have the desired effect.

Do you have a test case that demonstrates this problem?

> [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4007
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4007
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>            Assignee: Tim Ellison
>         Attachments: patch-4007.diff
>
>
> As spec says:
> public static final ResourceBundle getBundle(String baseName)
>     Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. Calling this method is equivalent to calling 
> getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader()), 
> except that getClassLoader() is run with the security privileges of ResourceBundle.

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


[jira] Updated: (HARMONY-4007) [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle

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

Leo Li updated HARMONY-4007:
----------------------------

    Attachment: patch-4007.diff

Will somebody try the patch?

> [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4007
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4007
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Attachments: patch-4007.diff
>
>
> As spec says:
> public static final ResourceBundle getBundle(String baseName)
>     Gets a resource bundle using the specified base name, the default locale, and the caller's class loader. Calling this method is equivalent to calling 
> getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader()), 
> except that getClassLoader() is run with the security privileges of ResourceBundle.

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