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

Clean bad smell in `GroovyClassLoader`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta-2
    • None

    Description

      The type of classCache can not represent its true responsibility:
      protected final Map<String, Class> classCache = new UnlimitedConcurrentCache<String, Class>();

      So I propose to change the type to EvictableCache<String, Class>

      Similarly,  protected final Map<String, Class> sourceCache = new StampedCommonCache<String, Class>(); has the same bad smell

      It will be a breaking change, but it is time to clean the historical bad smell in a big version like Groovy 3.0.0

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m