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

Annotation spanning lines is not supported by Parrot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.4
    • parser-antlr4
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: