Permalink
Browse files

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

…integration testing"
  • Loading branch information...
graemerocher committed Feb 26, 2013
1 parent cd15675 commit a0f21de27f1435d3fa2e9d58abbdbc564593652e
@@ -22,11 +22,7 @@
import java.lang.reflect.Modifier;
import java.util.List;
-import org.codehaus.groovy.ast.AnnotationNode;
-import org.codehaus.groovy.ast.ClassNode;
-import org.codehaus.groovy.ast.FieldNode;
-import org.codehaus.groovy.ast.MethodNode;
-import org.codehaus.groovy.ast.PropertyNode;
+import org.codehaus.groovy.ast.*;
import org.codehaus.groovy.ast.expr.ArgumentListExpression;
import org.codehaus.groovy.ast.expr.ClassExpression;
import org.codehaus.groovy.ast.expr.ConstantExpression;
@@ -89,6 +85,7 @@ public int compareTo(Object o) {
}
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode) {
+ if(classNode instanceof InnerClassNode) return;
Class instanceImplementation = getInstanceImplementation();
if (instanceImplementation != null) {

0 comments on commit a0f21de

Please sign in to comment.