[ https://issues.apache.org/jira/browse/GROOVY-9487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun closed GROOVY-9487. ------------------------------ Resolution: Fixed > Update and check if initialized via same field of metaclass > ----------------------------------------------------------- > > Key: GROOVY-9487 > URL: https://issues.apache.org/jira/browse/GROOVY-9487 > Project: Groovy > Issue Type: Improvement > Reporter: Daniel Sun > Assignee: Daniel Sun > Priority: Major > Fix For: 4.0.0-alpha-1, 3.0.3 > > Time Spent: 20m > Remaining Estimate: 0h > > {{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}}. -- This message was sent by Atlassian Jira (v8.3.4#803005)