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

Make ClassHelper consistent in how it creates ClassNodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.11
    • Compiler
    • None

    Description

      The ClassHelper class in almost all cases creates class nodes for its static fields using the makeWithoutCaching method. There are 2 exceptions: Annotation and Enum. My understanding is that this is a holdover from the pre-Java5 days. The problem is that this has huge memory ramifications on Groovy-Eclipse. So, I would like to see this changed.

      See this branch for what I am talking about:

      https://github.com/aeisenberg/groovy-core/tree/ClassHelper-ClassNode-generation

      Attachments

        Activity

          People

            melix Cédric Champeau
            werdna Andrew Eisenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: