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

Make ClassHelper consistent in how it creates ClassNodes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.11
    • Component/s: Compiler
    • Labels:
      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

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              werdna Andrew Eisenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: