Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.9
-
None
-
None
-
Windows 7
Eclipse Kepler SR 1
Description
The Java Compiler settings in Eclipse has the following two requirements:
1. Source compatibility must be equal to or less than compliance level.
2. Classfile compatibility must be equal to or less than compliance level.
In the method "org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter# write()", which writes the settings in "org.eclipse.jdt.core.prefs", the value for "org.eclipse.jdt.core.compiler.compliance" is set to the same value as "org.eclipse.jdt.core.compiler.source". This does not meet the requirements when "org.eclipse.jdt.core.compiler.codegen.targetPlatform" is greater than "org.eclipse.jdt.core.compiler.source".
The method can meet the requirements by setting "org.eclipse.jdt.core.compiler.compliance" to the greater of "org.eclipse.jdt.core.compiler.codegen.targetPlatform" and "org.eclipse.jdt.core.compiler.source".