groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blackd...@apache.org
Subject [2/4] incubator-groovy git commit: fix innerclass name for JDK9
Date Thu, 09 Jul 2015 16:28:44 GMT
fix innerclass name  for JDK9


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/8174f649
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/8174f649
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/8174f649

Branch: refs/heads/GROOVY_2_4_X
Commit: 8174f649e171922dadfd6a00a5903773a345d83f
Parents: 1d01c08
Author: Jochen Theodorou <blackdrag@gmx.org>
Authored: Thu Jul 9 09:10:37 2015 +0200
Committer: Jochen Theodorou <blackdrag@gmx.org>
Committed: Thu Jul 9 18:05:38 2015 +0200

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/8174f649/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java b/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
index 1c9a155..f0c6945 100644
--- a/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
+++ b/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
@@ -273,7 +273,7 @@ public class AsmClassGenerator extends ClassGenerator {
         if (enclosingMethod != null) {
             // local inner classes do not specify the outer class name
             outerClassName = null;
-            innerClassName = null;
+            if (innerClass.isAnonymous()) innerClassName = null;
         }
         int mods = adjustedClassModifiersForInnerClassTable(cn);
 


Mime
View raw message