-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Java 1.6 compatibility. #195
Conversation
This was brought up in #181. Are you asking for the project to maintain compatibility with OpenJDK 1.6? Do you have a use case? |
I'm only suggesting 1.6 compatibility, since it seems you don't really need language features specific to later versions. My target system is a virtual private server, which has only Java 1.6 VMs available to it from configured software repositories, so I'm going to use JSON-java code without multi-catch regardless of whether you accept such change into the official repository or not. Additionally, I'll only use classes for JSON to XML conversion, because I talk to a RESTful API that doesn't support anything else than JSON as hypermedia format, and my client is part of XML based workflows. My software isn't related to Android in any way, it doesn't use the official jar releases nor the POM you seem to have somewhere. I also don't care about 1.7 or 1.8 being more performant, because the workflows are allowed to take some time, while, at the same time, 1.6 compiled bytecode will run on newer VM implementations, therefore I guess such bytecode would benefit from performance and security improvements to some extend. If I would have to choose between a somewhat slower way to work with JSON under 1.6 SE or no (easy) way at all, I obviously prefer the first. In my opinion, you don't necessarily have to change your source and target versions, but I don't see how it should be of harm if the code successfully builds for 1.6 too. You can make it official policy that this project should only support most recent VM versions, but I guess you're not going to enforce this by introducing arbitrary incompatibilities here and there, right? That's my perspective so far. The only reason I created this pull request was that git clones of this repository could compile for 1.6 so other developers wouldn't turn away as soon as they see the errors in such environment, which seem to be a lot instead of only the two lines that need this small adjustment. |
What problem does this code solve? Changes to the API? Changes to how the code behaves? Does it break the unit tests? Will this require a new release? Should the documentation be updated? |
Builds with OpenJDK 1.6 and 1.7.