Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

json-iterator not compatible with JDK 9 #67

Copy link
Copy link
@abatista75

Description

@abatista75
Issue body actions

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?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.