Bug 1191

Summary: Debug is permanently enabled or permanently disabled for many JogAmp module classes
Product: [JogAmp] General Reporter: Xerxes Rånby <xerxes>
Component: source_codeAssignee: Sven Gothel <sgothel>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

Description Xerxes Rånby 2015-08-11 14:31:06 CEST
The JogAmp debug messages should be conditional but are permanently enabled or permanently disabled for many JogAmp module classes

jogamp$ grep -r "DEBUG = true" .

./jogl-demos/maven/jp4da/jp4da-android/gen/com/io7m/examples/jp4da/BuildConfig.java:    public final static boolean DEBUG = true;
./jogl-demos/src/jbullet/src/javabullet/BulletGlobals.java:	public static final boolean DEBUG = true;

./jogl/src/nativewindow/classes/com/jogamp/nativewindow/swt/SWTAccessor.java:    private static final boolean DEBUG = true;

./gluegen/src/java/com/jogamp/common/util/locks/SingletonInstance.java:    protected static final boolean DEBUG = true;
./gluegen/src/java/jogamp/android/launcher/LauncherTempFileCache.java:    private static final boolean DEBUG = true;

jogamp$ grep -r "DEBUG = false" .

./jogl/src/newt/classes/com/jogamp/newt/event/NEWTEvent.java:    static final boolean DEBUG = false;
./jogl/src/jogl/classes/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java:    public static final boolean DEBUG = false;
./jogl/src/jogl/classes/com/jogamp/gluegen/opengl/BuildStaticGLInfo.java:  protected boolean DEBUG = false;
./jogl/src/jogl/classes/com/jogamp/opengl/util/texture/spi/SGIImage.java:        final boolean DEBUG = false;
./jogl/src/jogl/classes/jogamp/opengl/util/pngj/PngHelperInternal.java:	static final boolean DEBUG = false;
./jogl/src/jogl/classes/jogamp/graph/font/typecast/TypecastFont.java:    static final boolean DEBUG = false;
./jogl/src/nativewindow/classes/com/jogamp/nativewindow/util/PixelFormatUtil.java:    private static boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestMapBufferRead01NEWT.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestMapBufferRead02NEWT.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/jogl/math/TestQuaternion01NOUI.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT01.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextNewtDemo.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneNewtDemo.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/demos/ui/UINewtDemo01.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUUISceneNewtCanvasAWTDemo.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURegionNewtDemo.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT00.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/graph/TestTextRendererNEWT10.java:    static final boolean DEBUG = false;
./jogl/src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java:    static final boolean DEBUG = false;

./gluegen/jcpp/src/main/java/com/jogamp/gluegen/jcpp/LexerSource.java:    private static final boolean DEBUG = false;
./gluegen/src/java/com/jogamp/common/util/SecurityUtil.java:    private static final boolean DEBUG = false;
./gluegen/src/java/jogamp/common/os/android/StaticContext.java:   private static boolean DEBUG = false;
./gluegen/src/java/jogamp/common/os/android/AndroidUtilsImpl.java:   private static boolean DEBUG = false;
./gluegen/src/java/jogamp/android/launcher/AssetDexClassLoader.java:    private static final boolean DEBUG = false;
./gluegen/src/java/jogamp/android/launcher/TraceDexClassLoader.java:    private static final boolean DEBUG = false;
./gluegen/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java:        static final boolean DEBUG = false;
./gluegen/src/junit/com/jogamp/common/util/locks/TestRecursiveThreadGroupLock01.java:        static final boolean DEBUG = false;
./gluegen/src/junit/com/jogamp/common/util/RingBuffer01Base.java:    private static boolean DEBUG = false;
Comment 1 Sven Gothel 2015-10-09 06:33:28 CEST
Not a bug, but a feature.