-
Notifications
You must be signed in to change notification settings - Fork 115
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
Class file not compatible with older versions of Java #38
Comments
I believe there are uses of the 'diamond operator' used that may stop the
I have no problem with you forking the json-io repo, and modifying the On Thu, Apr 23, 2015 at 1:53 PM, SlimerDude notifications@github.com
|
Generics were introduced in Java 1.5, so diamond operators shouldn't be a problem. To produce backwards compatible class files shouldn't take much more than setting the |
The diamond operator (on the RHS) support was not added (as I understand On Sat, Apr 25, 2015 at 8:14 AM, SlimerDude notifications@github.com
|
With regards to the line:
while the syntax is Java 1.7, the JDK can still compile it to Java 1.5 / 1.6 compatible byte code resulting in a class file usable by all (the purpose of the said But on further inspection of the source code, I see you're using Oh well - I was only after a quick one-liner for pretty printing JSON. Hope you don't mind but I've gone with the usual GSON... |
Assuming the lib doesn't use any newer Java features, could the source be recompiled so it's compatible with older versions of Java?
Being a JDK 1.6 user I currently get:
This SO question explains a bit more if you're unsure.
I know I can do it myself, but it's always nice not having to build from source.
The text was updated successfully, but these errors were encountered: