Github user jwagenleitner commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/559#discussion_r126286817
  
    --- Diff: src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java ---
    @@ -1251,11 +1251,13 @@ private void processClassVariable(String name) {
                 mv.visitInsn(DUP);
     
                 loadThisOrOwner();
    -            mv.visitLdcInsn(name);
    +            mv.visitLdcInsn(expression.getName());
     
                 mv.visitMethodInsn(INVOKESPECIAL, 
"org/codehaus/groovy/runtime/ScriptReference", "<init>", 
"(Lgroovy/lang/Script;Ljava/lang/String;)V", false);
             } else {
    -            PropertyExpression pexp = new PropertyExpression(new 
VariableExpression("this"), name);
    +            PropertyExpression pexp = new PropertyExpression(new 
VariableExpression("this"), expression.getName());
    --- End diff --
    
    Scratch that comment, I was looking at the wrong source.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to