[
https://issues.apache.org/jira/browse/GROOVY-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles closed GROOVY-3588.
-------------------------------
Resolution: Fixed
> ClassNode:306
> -------------
>
> Key: GROOVY-3588
> URL: https://issues.apache.org/jira/browse/GROOVY-3588
> Project: Groovy
> Issue Type: Sub-task
> Components: Compiler
> Reporter: Jochen Theodorou
> Priority: Major
>
> ClassNode:306 has {code:Java} if ((modifiers & ACC_INTERFACE) == 0)
> addField("$ownClass", ACC_STATIC|ACC_PUBLIC|ACC_FINAL,
> ClassHelper.CLASS_Type, new ClassExpression(this)).setSynthetic(true);
> transformInstances = new EnumMap<CompilePhase, Map<Class <? extends
> ASTTransformation>, Set<ASTNode>>>(CompilePhase.class);
> for (CompilePhase phase : CompilePhase.values()) {
> transformInstances.put(phase, new HashMap<Class <? extends
> ASTTransformation>, Set<ASTNode>>());
> }{code} which should be moved somewhere else. -The "$ownclass"
> probably into verifier- (see GROOVY-3255) and the for transformInstances we
> need to find a good place. At last there is no sense in addeding these
> instances to a ClassNode, that is no primary class node. The code above is
> for example executed for each class creation in ClassHelper, which looks very
> surplus
--
This message was sent by Atlassian Jira
(v8.20.1#820001)