Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recompile at JDK 1.6 #197

Closed
kt-ssp opened this issue Feb 12, 2016 · 5 comments
Closed

Recompile at JDK 1.6 #197

kt-ssp opened this issue Feb 12, 2016 · 5 comments

Comments

@kt-ssp
Copy link

kt-ssp commented Feb 12, 2016

Including JSON-java using maven:

        <dependency>
            <groupId>org.json</groupId>
            <artifactId>json</artifactId>
            <version>20151123</version>
        </dependency>

for a project that is to be deployed to IBM WebSphere Application Server (WAS) on versions 8.0 and 8.5, so require code compiled for Java 1.6.

Currently, JSON-java is compiled for 1.7 so it does not load. Found two classes org.json.JSONObject and org.json.JSONArray that would not compile at 1.6 due to the use of multi-catch parameters. With these two adjusted, all compiled at 1.6 and the code works in WAS.

Would it be possible to make these changes permanent and release (through Maven at least) a version compiled at Java 1.6?

@johnjaylward
Copy link
Contributor

a PR has already been accepted for this. You can close this, the change should be in the next release.

@johnjaylward
Copy link
Contributor

#195

@stleary
Copy link
Owner

stleary commented Feb 13, 2016

Fixed in https://github.com/stleary/JSON-java/releases/tag/20160212. Let us know if there are an problems. Maven release pending.

@stleary stleary closed this as completed Feb 13, 2016
@kt-ssp
Copy link
Author

kt-ssp commented Feb 16, 2016

Appreciate the speed with which this was resolved and happy to confirm that having updated to the later maven version that all is working.

@stleary
Copy link
Owner

stleary commented Feb 16, 2016

Great, thanks for confirming it is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants