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

BuilderASTTransformation uses wrong class loader to load builder strategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.2
    • groovy-jdk
    • None

    Description

      BuilderASTTransform loads builder strategies with the source unit's class loader, rather than the transform loader. As a result, compilation of code using @Builder fails in Gradle (and other tools that make a distinction between these class loaders). Solution is to use the transform loader, as for example done by TraitASTTransformation.

      Attachments

        Activity

          People

            paulk Paul King
            pniederw Peter Niederwieser
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: