Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Unstable

Changes

Summary

  1. Remedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) (details)
Commit 8ac3f344aded383ca9a3083a877af7bfdf6e1e48 by Sven Gothel
Remedy for Bug 782: Issue Debug.initSingleton() or Debug.debug(..) before calling 'PropertyAccess.isPropertyDefined(propName, default)' through Debug class.

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.

+++

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!

+++
The file was modified src/jogl/classes/jogamp/opengl/util/glsl/fixedfunc/FixedFuncPipeline.java (diff)
The file was modified src/nativewindow/classes/jogamp/nativewindow/Debug.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLBufferStateTracker.java (diff)
The file was modified src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLDrawableHelper.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/awt/GLJPanel.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/Debug.java (diff)
The file was modified src/newt/classes/jogamp/newt/Debug.java (diff)
The file was modified src/newt/classes/jogamp/newt/WindowImpl.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/awt/TextRenderer.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/windows/wgl/WGLUtil.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/GLContext.java (diff)
The file was modified src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java (diff)
The file was modified src/newt/classes/jogamp/newt/driver/x11/ScreenDriver.java (diff)
The file was modified src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/GLBufferSizeTracker.java (diff)
The file was modified src/newt/classes/jogamp/newt/ScreenImpl.java (diff)
The file was modified src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawable.java (diff)
The file was modified src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java (diff)