Skip to content

ArrayIndexOutOfBoundsException at PApplet.java:122 with JDK 9 #5275

Description

@unrealkate

Description

Processing 3.3.6 (x64) does not seem to work with recent JDK 9 (x64)

Expected Behavior

Normal execution

Current Behavior

Run fails with error: ArrayIndexOutOfBoundsException at PApplet.java:122

Steps to Reproduce

  1. Create New project in IntelliJ IDEA
  2. Add core.jar to libraries section in "project structure" window
  3. Create main class that extends PApplet
  4. Add main, settings, setup and draw functions
  5. Compile and try to run

Your Environment

  • Processing version: 3.3.6 (x64)
  • Operating System and OS version: Windows 8.1 (x64)
  • Other information: JDK 9 (x64)

Possible Causes / Solutions

Decompling bytecode leads to line with this code:
javaPlatform = parseInt(split(javaVersionName, '.')[1]);
it seems that JDK 9 version is just "9" but not "9.0".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions