Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-805

New Roo projects require Java 1.6 compiler compliance

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: Sprint 9, 2.3.1.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      I had 1.5 compiler compliance turned on in my workspace.
      I tried creating a new Roo Project, and got an error saying the Java compiler did not match the Java Facet for the project.
      I checked the facet and saw it was 6.0 by default.
      So I have to either change project compiler compliance, the workspace-wide compiler compliance to 1.6, or move the facet back to 5.0 to get the error to go away.
      Also, the Maven pom Roo generates has 1.6 as the version for the maven compiler plugin.

      Given all this, it seems like Roo is mandating Java 6 or greater for development. Is this correct? Since Spring 3 is Java 5 or >, I was assuming Roo would also be Java 5 or >.

        Activity

        Hide
        cdupuis Christian Dupuis added a comment -

        I was able to re-produce this.

        The compiler compliance setting is now being used to set up a project.

        Christian

        Show
        cdupuis Christian Dupuis added a comment - I was able to re-produce this. The compiler compliance setting is now being used to set up a project. Christian

          People

          • Assignee:
            Unassigned
            Reporter:
            kdonald Keith Donald
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: