jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
GMaven (OLD... DO NOT USE)
  • GMaven (OLD... DO NOT USE)
  • MGROOVY-197

AST transformations don't work

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0-rc-4
  • Fix Version/s: 1.0-rc-5
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    2

Description

If I use gmaven to compile groovy source code with AST transformation (eg. @Bindable), it is not applied in resulting class file.
I've selected 1.6 provider, which uses groovy 1.6-RC-1 by default.
Simple project is in attachment test1.zip

If I try groovyc (from 1.6.0) for the same thing, it works - the resulting class file is bigger and contains words like "PropertyChangeSupport"

So I've tried to force gmaven to use groovy 1.6.0, but I'm getting

[INFO] startup failed, /C:/tmp/groovytest/test/src/main/groovy/test/Example.groovy: Not an ASTTransformation: groovy.beans.BindableASTTransformation declared by groovy.beans.Bindable

and if I run mvn with -X I still see the org.codehaus.groovy:groovy-all:jar:1.6-RC-1 dependency there
attachment test2.zip

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    test1.zip
    24/Feb/09 8:35 AM
    1 kB
    Pavel Cernocky
    1. File
      src/main/groovy/test/Example.groovy 0.1 kB
    2. XML File
      pom.xml 1 kB
    Download Zip
    Show
    Zip Archive
    test1.zip
    24/Feb/09 8:35 AM
    1 kB
    Pavel Cernocky
  2. Hide
    Zip Archive
    test2.zip
    24/Feb/09 8:35 AM
    1 kB
    Pavel Cernocky
    1. File
      src/main/groovy/test/Example.groovy 0.1 kB
    2. XML File
      pom.xml 2 kB
    Download Zip
    Show
    Zip Archive
    test2.zip
    24/Feb/09 8:35 AM
    1 kB
    Pavel Cernocky

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
No work has yet been logged on this issue.

People

  • Assignee:
    Jason Dillon
    Reporter:
    Pavel Cernocky
Vote (0)
Watch (1)

Dates

  • Created:
    24/Feb/09 8:35 AM
    Updated:
    27/Feb/09 7:57 AM
    Resolved:
    27/Feb/09 7:57 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.