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

@Delegate triggers BUG! exception in phase 'class generation'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0-rc-2
    • Fix Version/s: 2.3.0-rc-4
    • Component/s: None
    • Labels:
      None

      Description

      If a class A has a member of type B, and that type B has itself a member of type C annotated with @Delegate, that C uses generics and that B is precompiled, then compilation of A will fail.

      Example:

      class A {
         B b = new B()
      }
      

      and the precompiled class:

      class B {
         @Delegate Map c = [:]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              melix Cédric Champeau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: