You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.module.ResolutionException: Modules android.json and jsonassert export package org.json to module tomcat.embed.core
Because JSONAssert has a dependency on jsonassert, and because it defines JSONString in the org.json package (same that android.json uses), using JSONAssert will always cause split package issues in any Java 9++ programs that use it.
Simple solution is to change the JSONString package name as it cannot belong to org.json.
Another solution is to move JSONString to the android.json project.
Another solution is to avoid defining or using JSONString altogether.
I have not found any workaround to this other than excluding JSONAssert from the dependencies. Any help getting our existing code to work on Java11 with JSONAssert would be appreciated.
The text was updated successfully, but these errors were encountered:
I submitted a PR for this. There are some other things that would be nice in a potential new major version, like bumping the source/target version (6 doesn't even work with Maven anymore), and even adding a module-info file. I'd be happy to help with these as well!
java.lang.module.ResolutionException: Modules android.json and jsonassert export package org.json to module tomcat.embed.core
Because JSONAssert has a dependency on jsonassert, and because it defines JSONString in the org.json package (same that android.json uses), using JSONAssert will always cause split package issues in any Java 9++ programs that use it.
Simple solution is to change the JSONString package name as it cannot belong to org.json.
Another solution is to move JSONString to the android.json project.
Another solution is to avoid defining or using JSONString altogether.
I have not found any workaround to this other than excluding JSONAssert from the dependencies. Any help getting our existing code to work on Java11 with JSONAssert would be appreciated.
The text was updated successfully, but these errors were encountered: