Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-751

compliance should be the greater of targetPlatform and source

    XMLWordPrintableJSON

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".

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            hhrva7opf4txktcd Andrew Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: