Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3fe9a91f7552acaf931a074b330fce3b4e398357 1 parent e31b9c5
@jeffbrown jeffbrown authored
View
7 ...gin-controllers/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) {
Please sign in to comment.
Something went wrong with that request. Please try again.