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
{{ message }}
Repository navigation
JSONassert introduces split package issues in any Java 9+ project using it #116
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.
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!
Activity
ntherrien commentedon Apr 19, 2019
Would you guys be open to an update of this project to support Java 11? I can volunteer some time to perform the modularization.
Does your build server support Java 11 builds?
haster commentedon May 15, 2019
I am running into the same issue. Right now, JSONAssert is not usable in a jigsaw context due to this split-package issue.
zrbrown commentedon Nov 11, 2022
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!
scordio commentedon Feb 19, 2025
This should have been addressed by #194.