Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`StringIndexOutOfBoundsException` on PApplet initialisation when using EA versions of Java #142
Comments
|
after updating all the libraries to those, provided in 4.2a (on Java 14), |
|
Ok, though this is going to be a low priority; only Java 11, the LTS, is supported. |
|
Another solution i can think of would be to catch this error and display a warning, like "you are currently using unsupported version of java, consider switching to java 11" and probably also a link to download location. |
|
Are you sure you're using the version of the “core” classes from this repo? The 3.x code will definitely do this, but I don't see anything obvious for why 4.x would be failing. What JDK is this using? |


Description
Expected Behavior
you can make a PApplet with Java 11+.
Current Behavior
On early access or preview versions creating
PAppletfails withStringIndexOutOfBoundsException"index -1 out of bounds for length 0";Steps to Reproduce
1.get yourself a copy of
processing.coreand Java 15+ (early access version of java);2.create a class, extending
processing.core.PApplet(normal sketch);3.try to run this sketch.
Your Environment
Possible Causes / Solutions
probably have default value for
javaVersionandjavaPlatformin caseSystem.getProperty("java.version")returns something not expected