jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
groovy
  • groovy
  • GROOVY-3254 code clean up in 1.7
  • GROOVY-3588

ClassNode:306

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 1.8.x, 2.x
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

ClassNode:306 has

        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>>());
        }

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

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 20/Jun/09 6:30 AM

I cloned GROOVY-3255 since the issue with the transform code is still there

Show
blackdrag blackdrag added a comment - 20/Jun/09 6:30 AM I cloned GROOVY-3255 since the issue with the transform code is still there
Paul King made changes - 20/Jun/09 7:01 PM
Field Original Value New Value
Description 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 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
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
Guillaume Laforge made changes - 31/Jul/09 12:10 PM
Fix Version/s 1.7-beta-x [ 15538 ]
Fix Version/s 1.7-beta-1 [ 14014 ]
Hide
Permalink
Paul King added a comment - 17/Jul/12 4:34 PM

Jochen, what was required for this again?

Show
Paul King added a comment - 17/Jul/12 4:34 PM Jochen, what was required for this again?
blackdrag blackdrag made changes - 16/Aug/12 10:05 AM
Fix Version/s 1.8.x [ 15750 ]
Fix Version/s 2.x [ 17013 ]
Fix Version/s 1.7.x [ 15538 ]
Paul King made changes - 24/Dec/12 3:52 AM
Assignee Paul King [ paulk_asert ]

People

  • Assignee:
    Unassigned
    Reporter:
    blackdrag blackdrag
Vote (0)
Watch (1)

Dates

  • Created:
    20/Jun/09 6:29 AM
    Updated:
    24/Dec/12 3:52 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.