View | Details | Raw Unified | Return to bug 206483 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java (-1 / +7 lines)
Lines 695-701 Link Here
695
		}
695
		}
696
		if ((optionValue = optionsMap.get(OPTION_TargetPlatform)) != null) {
696
		if ((optionValue = optionsMap.get(OPTION_TargetPlatform)) != null) {
697
			long level = versionToJdkLevel(optionValue);
697
			long level = versionToJdkLevel(optionValue);
698
			if (level != 0) this.targetJDK = level;
698
			if (level != 0) {
699
				// TODO see 206483
700
				if (level == ClassFileConstants.JDK1_7) {
701
					level = ClassFileConstants.JDK1_6;
702
				}
703
				this.targetJDK = level;
704
			}
699
			if (this.targetJDK >= ClassFileConstants.JDK1_5) this.inlineJsrBytecode = true; // forced from 1.5 mode on
705
			if (this.targetJDK >= ClassFileConstants.JDK1_5) this.inlineJsrBytecode = true; // forced from 1.5 mode on
700
		}
706
		}
701
		if ((optionValue = optionsMap.get(OPTION_Encoding)) != null) {
707
		if ((optionValue = optionsMap.get(OPTION_Encoding)) != null) {

Return to bug 206483