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

Annotation spanning lines is not supported by Parrot

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1, 3.0.4
    • Component/s: parser-antlr4
    • Labels:
      None

      Description

      The following code parses correctly in 2.5.x but fails in 3+:

      @interface CollectionOfElements{}
      @interface JoinTable{
          Table table()
          JoinColumn[] joinColumns()
      }
      @interface Table{ String name() }
      @interface JoinColumn{ String name() }
      @interface Column{
          String name()
          boolean nullable()
      }
      
      class OtherSection {
          @CollectionOfElements
          @JoinTable
          (
              table = @Table(name="gaga"),
              joinColumns = @JoinColumn(name="BoyId")
          )
          @Column(name="favoritepoupon",
      nullable=false)
          Set<String> questions = new HashSet<String> ()
      }
      

        Attachments

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              paulk Paul King
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: