Login  Register

Re: Error in MacOSXCGLContext since Java 7u55

Posted by gouessej on Apr 16, 2014; 2:30pm
URL: https://forum.jogamp.org/Error-in-MacOSXCGLContext-since-Java-7u55-tp4032200p4032205.html

A plain Java application outside the browser without Java Web Start and an applet don't use the same classloader and I already used a similar workaround. It reminds me this bug:
http://bugs.java.com/view_bug.do?bug_id=8017776

The AppContext is thread local, it is probably null in one classloader:
http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/ec13a50f0f17/src/share/classes/sun/awt/SunToolkit.java#l1153

You should read the source code of OpenJDK to understand how it works. Oracle Java uses almost the same source code except for Java Web Start / Icedtea Web Start.
Julien Gouesse | Personal blog | Website