Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2924

Problem with reserved keyword and annotations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7, 1.6-beta-2
    • Component/s: parser
    • Labels:
      None
    • Environment:
      Windows / Linux

      Description

      Hi,

      Was trying to get the Apache MINA state machine to work with annotations

      Here is a code snippet

      @Transition(on = "load", in = EMPTY, next = LOADED)
      public void loadTape(String nameOfTape) {
      System.out.println("Tape '" + nameOfTape + "' loaded");
      }

      Unfortunately,the 'in' keyword is reserved in groovy

      so I tried to quote it like

      @Transition(on = "load", 'in' = EMPTY, next = LOADED)

      But I got no success

      Do you know a remedy to my problem?

      Best regards

      Thierry Barnier

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              tbarnier Thierry Barnier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: