Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix for GRAILS-9627 "inner class or enum in domain class breaks unit/…

…integration testing"
  • Loading branch information...
commit a0f21de27f1435d3fa2e9d58abbdbc564593652e 1 parent cd15675
graemerocher authored February 26, 2013
7  ...ore/src/main/groovy/org/codehaus/groovy/grails/compiler/injection/AbstractGrailsArtefactTransformer.java
@@ -22,11 +22,7 @@
22 22
 import java.lang.reflect.Modifier;
23 23
 import java.util.List;
24 24
 
25  
-import org.codehaus.groovy.ast.AnnotationNode;
26  
-import org.codehaus.groovy.ast.ClassNode;
27  
-import org.codehaus.groovy.ast.FieldNode;
28  
-import org.codehaus.groovy.ast.MethodNode;
29  
-import org.codehaus.groovy.ast.PropertyNode;
  25
+import org.codehaus.groovy.ast.*;
30 26
 import org.codehaus.groovy.ast.expr.ArgumentListExpression;
31 27
 import org.codehaus.groovy.ast.expr.ClassExpression;
32 28
 import org.codehaus.groovy.ast.expr.ConstantExpression;
@@ -89,6 +85,7 @@ public int compareTo(Object o) {
89 85
     }
90 86
 
91 87
     public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode) {
  88
+        if(classNode instanceof InnerClassNode) return;
92 89
         Class instanceImplementation = getInstanceImplementation();
93 90
 
94 91
         if (instanceImplementation != null) {

0 notes on commit a0f21de

Please sign in to comment.
Something went wrong with that request. Please try again.