Summary: | AccessControlException using jogl.debug.TextRenderer in applet | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | martinezmj |
Component: | applet | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
gluegen d27d802b4e11745969909229a2d1f0963c74ce3a
joal b4fbbc98929c56b9f82815a50dacb02796d9d252
jogl 8ac3f344aded383ca9a3083a877af7bfdf6e1e48
|
Workaround: | TRUE |
Description
martinezmj
2013-07-12 17:51:17 CEST
Calling 'Debug.isPropertyDefined(propName, default)' may be 'optimized' to 'PropertyAccess.isPropertyDefined(propName, default)', which would skip the modules Debug's class initialization. Iff that happens, an AccessControlException may happen, due to requesting an insecure property, since modules own Debug class has not been added it's trusted prefixes from within it's init block yet. This seems to be a bug of the JVM .. to me, however .. the above description is the only able to explain the issue at hand. .. Naturally, Debug class should be initialized before calling it's parent isPropertyDefined(..)! Fix calls Debug class own static methods, either Debug.initSingleton() or Debug.debug(), before calling 'isPropertyDefined(propName, default)'. +++ Also mark Debug class static methods final! +++ Marked as a workaround, since a JVM bug is assumed! |