Login  Register

Re: The closed API of Java2D/AWT which is currently used by JOGL

Posted by Sven Gothel on Sep 21, 2019; 11:25am
URL: https://forum.jogamp.org/The-closed-API-of-Java2D-AWT-which-is-currently-used-by-JOGL-tp4040068p4040070.html

Should be all resolved,
please see the thread 'java11 + release progress thread (also: review)'.

You will find a java11 branch and respective bugzilla entries.

~Sven

On 9/21/19 6:49 AM, Sergey Bylokhov [via jogamp] wrote:

> Hello, Everybody.
>
> I working on a Java2D/AWT part of the OpenJDK project and would like to
> know which part of the closed API is still used by the  JOGL project. I found
> a few places where "sun.java2d.opengl.OGLUtilities" is used, but if I remove
> this class from the JDK the JOGL seems still continue work.
>
> If debug mode is enabled then I see some related exceptions like:
> java.lang.NoSuchFieldException: PBUFFER
>         at java.base/java.lang.Class.getField(Class.java:2000)
>         at jogamp.opengl.awt.Java2D$2.run(Java2D.java:574)
>         at jogamp.opengl.awt.Java2D$2.run(Java2D.java:569)
>
> see https://bugs.openjdk.java.net/browse/JDK-7188942
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> 'java.awt.peer.ComponentPeer com.jogamp.opengl.awt.GLCanvas.getPeer()'
>         at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:632)
>         at java.desktop/java.awt.Container.addNotify(Container.java:2800)
>         at java.desktop/java.awt.Window.addNotify(Window.java:777)
>
> see https://bugs.openjdk.java.net/browse/JDK-8074028
>
> Does it mean that JOGL running on jdk11+  does not use OGLUtilities class?
>