On Mon, Nov 05, 2001 at 12:05:39PM +1300, Bryce McKinlay wrote:
> Thanks for the explanation. I agree that relying on ResourceBundle being 
> initialized before a Security Manager is installed would be flakey, so I 
> installed a patch similar to what you suggested.

Hi, 

After this change, Classpath fails to compile with Jikes 1.14 (as patched for
Debian unstable), which says:

Found 1 semantic error compiling "../java/util/ResourceBundle.java":

   118.           return new Security();
                         <->
*** Error: An instance of "java/util/ResourceBundle.this" is not accessible 
here because it would have to cross a static region in the intervening type 
"java/util/ResourceBundle$1".

This can be fixed by tagging "class Security" as static as well:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Index: ResourceBundle.java
===================================================================
RCS file: /cvs/classpath/java/util/ResourceBundle.java,v
retrieving revision 1.12
diff -u -r1.12 ResourceBundle.java
--- ResourceBundle.java 2001/11/04 04:09:08     1.12
+++ ResourceBundle.java 2001/11/05 03:00:08
@@ -93,7 +93,7 @@
   /**
    * We override SecurityManager in order to access getClassContext(). 
    */
-  class Security extends SecurityManager
+  static class Security extends SecurityManager
   {
     /** Return the ClassLoader of the class which called into this
         ResourceBundle, or null if it cannot be determined. */
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks,

-- Fred Gray

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to