Re: The closed API of Java2D/AWT which is currently used by JOGL
Posted by
Sergey Bylokhov on
Sep 21, 2019; 6:30pm
URL: https://forum.jogamp.org/The-closed-API-of-Java2D-AWT-which-is-currently-used-by-JOGL-tp4040068p4040071.html
I found the patch below, which just replaces reflection by the hard-coded types.
https://jogamp.org/cgit/jogl.git/commit/?h=java11&id=e1c8add69973b0eae9a87cf2181a0f1cbbe62f4bBut it does not clear is this class is used for something, we do some cleanup of the Java2D related code and classes like sun.java2d.opengl.OGLUtilities(any other usage of the methods) have a good chance to be removed as they are not a public API(I am talking about some future jdk, in jdk11 it will be removed)
Probably this functional might be implemented differently? For example, it should be possible to expose such things via JAWT. I suggest to file a bug against OpenJDK/Java2D and of course, any patches/contributions are welcome.