Bug 70103 [1.5] Want v1.4 source code compatibility and v1.5 class files
Using Eclipse 3.0GA and Cheetah 0.0.6: Window -> Preferences -> Java -> Compiler -> Compliance and Classfiles Make the following settings: Compiler compliance level: 1.5 Generated .class file compatibility: 1.5 Source compatibility: 1.4 Current results: Error: "When source code compatibility is 1.4, the classfile compatibility has to be 1.4." Expected results: My settings should have been accepted.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompilerConfigurationBlock.java
PREF_PB_INCOMPATIBLE_JDK_LEVEL, PREF_ENABLE_EXCLUSION_PATTERNS, PREF_ENABLE_MULTIPLE_OUTPUT_LOCATIONS
			};
		if (JavaModelUtil.isJDTCore_1_5()) {
			String[] newKeys= new String[] {
					PREF_15_PB_UNSAVE_TYPE_OPERATION, PREF_15_PB_FINAL_PARAM_BOUND
			};
			String[] merged= new String[keys.length + newKeys.length];
			System.arraycopy(keys, 0, merged, 0, keys.length);
			System.arraycopy(newKeys, 0, merged, keys.length, newKeys.length);
			keys= merged;
		}
		return keys;
	}
	
	protected final Map getOptions(boolean inheritJavaCoreOptions) {
		Map map= super.getOptions(inheritJavaCoreOptions);
		map.put(INTR_DEFAULT_COMPLIANCE, getCurrentCompliance(map));
		return map;
	}
	
	protected final Map getDefaultOptions() {
		Map map= super.getDefaultOptions();
		map.put(INTR_DEFAULT_COMPLIANCE, getCurrentCompliance(map));
		return map;
	}	
	
	
	/*
	 * @see org.eclipse.jface.preference.PreferencePage#createContents(Composite)
	 */