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

Add javac class target version #104

Closed
wants to merge 1 commit into from
Closed

Conversation

@jamesrdf
Copy link
Contributor

@jamesrdf jamesrdf commented Jun 18, 2013

The target Java class binary version should be explicit in the build.xml file for repeatable builds.

@ndw
Copy link
Owner

@ndw ndw commented Jul 25, 2013

But I assume it means that you can't build with 1.7 for example, or 1.5 (if that even still works).

What's the repeatability problem without this?

@jamesrdf
Copy link
Contributor Author

@jamesrdf jamesrdf commented Jul 26, 2013

Without this, the build is dependent on the minor java version used to compile it. By using this flag the code can be compiled with javac 1.7 and used with java 1.6.

This flag does not cover all cases, if the code uses 1.7 specific API calls the compile may not notice (if compiled with 1.7) producing a runtime error. However, that (I believe) is manageable.

@ndw
Copy link
Owner

@ndw ndw commented Jul 26, 2013

Thanks for the explanation.

@ndw ndw closed this Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.