Project: JDT
Bug 243712 [preferences] Inconsistent setting of Java Compiler compliance level in preferences.
Reported: 2008-08-11 03:55:53 | Status: verified fixed

I have Eclipse with jre (JRE 1.6) in eclipse/ directory. When starting for first time in new workspace it sets Window -> Preferences -> Java -> Compiler -> Compiler Compliance level to 1.6 But when I press "Restore Defaults" on the same preference page, it reverts to 1.4 value. This behaviour seems inconsistent specially for products based on Eclipse+JDT that normally ship with their JREs.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ComplianceConfigurationBlock.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java