harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4007) [classlib][luni]java.util.ResourceBundle.getBundle() should get ClassLoader with the security privileges of ResourceBundle
Date Fri, 01 Jun 2007 09:55:16 GMT

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


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.

View raw message