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

roo cannot work with try - multi-catch

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Invalid
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: None
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      jdk 1.7

      Description

      I totally got mad about errors on the roo shell like

      Encountered " "|" "| "" at line 130, column 43.
      Was expecting one of:
      <IDENTIFIER> ...
      "..." ...

      see also http://forum.springsource.org/showthread.php?132753-how-to-debug-Encountered-quot-quot-quot-quot-quot-quot-at-line-129-column-43

      So I finally run a bash script over all my files to find out, whats on the given lines...

      It seems Spring Roo cannot accept try -multi-catch statements.
      I had something like

      catch (NoSuchAlgorithmException|IOException e) {

      somewhere and replaced it with two catch clauses and the error on the ROO-shell was gone.

      Is Roo not yet working correctly with Java 7, or needs it only a fix for multi-catch?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stewarta Alan Stewart
                Reporter:
                thetoaster Roman Haag
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: