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

Update and check if initialized via same field of metaclass

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1, 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      MetaClassImpl has its own private field initiliazed, when initialize() is completed, the field will be updated to true, but check if metaclass is initialized via method protected boolean isInitialized(), which could be overrided by its subclass, e.g. EMC. The subclasses can not access its base class's private field. As a result, updating MetaClassImpl's private initiliazed but may check its subclass's some field like initiliazed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daniel_sun Daniel Sun
                Reporter:
                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