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 configuration of target JDK level #23

Closed
markiewb opened this issue Sep 26, 2013 · 5 comments
Closed

Support configuration of target JDK level #23

markiewb opened this issue Sep 26, 2013 · 5 comments
Milestone

Comments

@markiewb
Copy link
Collaborator

org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.source=1.7

  • currently it is hardcoded to 1.6
@krasa
Copy link

krasa commented Nov 24, 2013

From my experience, it is best to just hardcode 1.7 and ignore the config file, since too many people are not able to get it right.
1.6 is tricky because it cannot format file which contains diamond operator, but returns result like everything went ok.

@markiewb
Copy link
Collaborator Author

@krasa : Thank you for the advance. I will hard-code it. If a user wants a different level he has to configure it in its configuration file.

@krasa
Copy link

krasa commented Nov 24, 2013

I actually override what the user wants, since he does not even know that he has 1.5 in his config and then complain that it does not work.

@krasa
Copy link

krasa commented Aug 15, 2014

Update: For formatting of 1.4 code ( package can be named 'enum') is needed 1.4 level, so I started to use a project configuration, which people normally use in the IDE...

@markiewb
Copy link
Collaborator Author

fixed in 1.10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants