Skip to content
Browse files

GRAILS-8784 - Fix controller compilation

The transformation should only be applied to controllers, not all classes defined in the controller's source file.
  • Loading branch information...
1 parent e31b9c5 commit 3fe9a91f7552acaf931a074b330fce3b4e398357 @jeffbrown jeffbrown committed Feb 15, 2012
View
7 .../src/main/groovy/org/codehaus/groovy/grails/compiler/web/ControllerActionTransformer.java
@@ -140,8 +140,11 @@ public ControllerActionTransformer() {
}
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode) {
- annotateCandidateActionMethods(classNode, source);
- processClosures(classNode, source);
+ final String className = classNode.getName();
+ if(className.endsWith(ControllerArtefactHandler.TYPE)) {
+ annotateCandidateActionMethods(classNode, source);
+ processClosures(classNode, source);
+ }
}
private void annotateCandidateActionMethods(ClassNode classNode, SourceUnit source) {

0 comments on commit 3fe9a91

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