Status: Accepted
Owner: limpbizkit
Labels: Milestone-Release2.0

New issue 336 by limpbizkit: ClassLoader.getSystemClassLoader() permission  
might not be available
http://code.google.com/p/google-guice/issues/detail?id=336

In certain secure containers, it's illegal to call this method. We need to  
wrap this in a try/catch block
and handle the potential SecurityException if it happens.

Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
        at  
com.google.inject.internal.BytecodeGen.getClassLoader(BytecodeGen.java:123)
        at  
com.google.inject.internal.BytecodeGen.getClassLoader(BytecodeGen.java:116)
        at  
com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:143)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to