Skip to content

Java 17 support #182

@nsoft

Description

@nsoft

We do not currently support Java 17, but support should be added. This may be somewhat difficult however, Here's what one gets with

openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment Zulu17.40+19-CA (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM Zulu17.40+19-CA (build 17.0.6+10-LTS, mixed mode, sharing)

gives

CRASH and BURNED before starting main thread:
java.lang.NoSuchFieldException: scl
        at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
        at org.jesterj.ingest.Main.initClassloader(Main.java:363)
        at org.jesterj.ingest.Main.main(Main.java:96)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.needhamsoftware.unojar.Boot.main(Boot.java:233)

To get class loading doing what we want we've been futzing with the system classloader, new code will be necessary since this has either moved, or become inaccessible (I suspect the later).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions