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

Multiple compilations errors with Groovy annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-2, 1.1-beta-3
    • 1.1-beta-3
    • parser
    • None
    • Gentoo Linux amd64 - Sun JDK 1.5.0.12

    Description

      If I try to use the following (Hibernate) annotation:

      @CollectionOfElements
      @JoinTable
      (
      name="test",
      joinColumns = [ @JoinColumn(name="TestId") ]
      )

      groovy compilation fails:

      Compilation error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Section.groovy: 19: unexpected token: @ @ line 19, column 2.

      If I change to

      @CollectionOfElements
      @JoinTable (
      name="gaga",
      joinColumns = [ @JoinColumn(name="BoyId") ]
      )

      it works. So this is a newline issue somewhere.

      Attachments

        Activity

          People

            alexpopescu Alexandru Popescu
            elvanor Jean-Noel Rivasseau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: