Get the current instance of PApplet from a library

Since Java 9 method setAccessible() also takes into consideration the module a reflected member belongs to:

There’s an --add-opens option for the Java’s command-line, but dunno how to add that to Processing:
OpenJDK.org/jeps/261#Breaking-encapsulation

2 Likes