Skip to content

Recompile at JDK 1.6 #197

Closed
Closed

Description

@kt-ssp

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?

Activity

  1. johnjaylward commented on Feb 12, 2016

    @johnjaylward
    Contributor

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

  2. johnjaylward commented on Feb 12, 2016

    @johnjaylward
    Contributor
  3. stleary commented on Feb 13, 2016

    @stleary
    Owner

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

  4. kt-ssp commented on Feb 16, 2016

    @kt-ssp
    Author

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

  5. stleary commented on Feb 16, 2016

    @stleary
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions