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

Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.1
    • 2.5.6, 3.0.0-beta-1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: