| Summary: | Enable 1.7 compiler compliance in the UI | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, darin.eclipse, deepakazad, markus.kell.r, Olivier_Thomann, srikanth_sankaran | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.8 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 321043, 321044 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Keller
Workaround in 3.6 builds is to set the following options in .settings/org.eclipse.jdt.core.prefs to 1.7 manually: 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 Created attachment 175330 [details]
Fix
The copyright in ComplianceConfigurationBlock should point to 2010, shouldn't it ? > The copyright in ComplianceConfigurationBlock should point to 2010, shouldn't > it ? Yep, fixed that and committed to HEAD. You will see wrong version warnings and a wrong default compliance for JavaSE-1.7 EE/VMs until bug 321043 and bug 321044 are fixed as well. We need to remove this for 3.7 and then set target to 3.8. (In reply to comment #5) > We need to remove this for 3.7 and then set target to 3.8. Done. See patch in bug 342391. To enable again simply set org.eclipse.jdt.internal.corext.util.JavaModelUtil.HIDE_VERSION_1_7 to 'false'; Removed JavaModelUtil.HIDE_VERSION_1_7 and references with http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=f70865d1fa2e46e69f577746ec1f6a0c7de8f124 and http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=7a07d85c5216ad248ba0c3294f30ca7ee0b160ee *** Bug 344729 has been marked as a duplicate of this bug. *** |