Skip to content

json-iterator not compatible with JDK 9 #67

@abatista75

Description

@abatista75

We are facing with a bug on some windows machines preventing us to use JDK 8 (for development purpose only). It seems to be due to a windows library (msvcrXXX.dll), and the bug has been raised to Oracle.

Anyway, the only solution for now was to use JDK9, but json-iterator does not work:

Exception in thread "main" com.jsoniter.spi.JsonException: failed to generate encoder for: java.util.Map<java.lang.String, com.jsoniter.any.Any> with [class java.lang.String, class com.jsoniter.any.Any], exception: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @7c417213
public static void encode_(java.lang.Object obj, com.jsoniter.output.JsonStream stream) throws java.io.IOException

Any clue?

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