Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3106

Spring Roo doesn't support new Java 7 language features

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.1.RELEASE
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      Java 7 new language features do not work in Roo. The following has been tested:

      • Underscore Between Literals
        public static final int TEST = 1_000_000;
        

        Roo error: Encountered " <IDENTIFIER> "_000_000 "" at line 18, column 41.

      • Diamond Syntax:
        List<String> list = new ArrayList<>();
        

        Roo error: Encountered " "<" "< "" at line 23, column 42.

      • Try with Resources
        try (FileInputStream in = new FileInputStream("readme.txt")) 
        {          
            System.out.println(in.read());
        }...
        

        Roo error: Encountered " "}" "} "" at line 19, column 9.

      Japa (Java Parser used in Roo) is obsolete project that supports 1.5
      Either japa should be modified or new java parser selected for future releases.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stewarta Alan Stewart
                Reporter:
                vladimirs.tihomirovs Vladimir Tihomirov
              • Votes:
                12 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: