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

Problem with reserved keyword and annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7, 1.6-beta-2
    • parser
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: