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

Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.6, 3.0.0-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      InĀ org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder, could the Closure param have a DelegatesTo annotation indicating that the builder is the delegate?

      Proposed:

      public static CompilerConfiguration withConfig(CompilerConfiguration config, @DelegatesTo(type="org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder") Closure code) {
      

      I verified that delegate is CompilerCustomizationBuilder, owner is the compiler config script type (probably the Closure's declaring type, and resolveStrategy is OWNER_FIRST.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              emilles Eric Milles
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: