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

Support for Jdk 1.6 #26

Open
ayyagari opened this issue Mar 20, 2017 · 4 comments
Open

Support for Jdk 1.6 #26

ayyagari opened this issue Mar 20, 2017 · 4 comments

Comments

@ayyagari
Copy link

v1.4.0 binary seems to be compiled with Java 7 (Unsupported major.minor version 51.0)
Is there a binary version for Java 1.6?

Thanks!

@bolerio
Copy link
Owner

bolerio commented Mar 20, 2017

Hmm, I think that's mainly I don't even JDK 1.6 so I didn't bother compiling with it. Do you need the maven dependency to work? In that case I'd have to make a 1.4.2 that is binary compatible with 1.6. Otherwise, I suppose you can just clone and compile the project.

@ayyagari
Copy link
Author

I tried cloning and compiling. It didn't work as Json.java uses Objects class that is introduced only in Java 1.7.

@bolerio
Copy link
Owner

bolerio commented Mar 21, 2017

OK, I will take a look. It should be easy to backport. It was my intention to keep 1.6 compatibility....

@bolerio
Copy link
Owner

bolerio commented Apr 6, 2017

Hi @ayyagari ,

So I modified the maven compiler plugin configuration like this:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
      <source>1.6</source>
      <target>1.6</target>
    </configuration>
  </plugin>

and the produced jar file was tested and worked file with a java 6 compiler and runtime.

Let me know if that works for you and if you would like an official release 1.4.2 to maven central (it does take a bit of time to do, so I won't spend that time unless it's actually useful to somebody :)

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

2 participants