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

Transform loaded by wrong class loader when @GroovyASTTransformationClass(classes = ...) is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-2, 1.8.6
    • 2.0-beta-3, 1.8.7
    • Compiler
    • None

    Description

      When @GroovyASTTransformationClass(classes = ...) is used, the transform will be loaded by CompilationUnit.classLoader rather than CompilationUnit.transformLoader. This may cause the transform not to work in environments (like Gradle) where transformLoader != classLoader.

      Pull request will follow.

      Attachments

        Activity

          People

            melix Cédric Champeau
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: