Login  Register

Re: JOGL OpenGL ES error in NetBeans

Posted by gouessej on Oct 28, 2015; 12:03pm
URL: https://forum.jogamp.org/JOGL-OpenGL-ES-error-in-NetBeans-tp4035582p4035637.html

DirectBuffer has been driven inaccessible in Java 1.9 like many sun.misc interfaces and classes except a few ones including sun.misc.Cleaner. You have to use the Java reflection API if you want to get rid of this warning but anyway, DirectBuffer won't be found at runtime with Java 1.9. It's very tedious, I did it in my deallocation helper (I gave you the link on IRC but you probably didn't look at it), you have to call isDirect() to be sure that you're treating a direct NIO buffer and you have to look for a byte buffer within the passed buffer (and its children) until you find a direct byte buffer with a non null cleaner. It's a bit different with Apache Harmony, Android DVM and GNU Classpath but the search is still necessary.
Julien Gouesse | Personal blog | Website