Skip to content

Commit e45e167

Browse files
committed
a static candidate method must not be a instance candidate method at the same time
1 parent 7879d7f commit e45e167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-core/src/main/groovy/org/codehaus/groovy/grails/compiler/injection/AbstractGrailsArtefactTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ protected boolean isCandidateInstanceMethod(ClassNode classNode, MethodNode decl
272272
}
273273

274274
protected boolean isStaticCandidateMethod(ClassNode classNode, MethodNode declaredMethod) {
275-
return GrailsASTUtils.isCandidateMethod(declaredMethod);
275+
return GrailsASTUtils.isCandidateMethod(declaredMethod) && !isCandidateInstanceMethod(classNode, declaredMethod);
276276
}
277277

278278
private MethodNode createStaticLookupMethod(ClassNode classNode, ClassNode implementationNode, String apiProperty, String lookupMethodName) {

0 commit comments

Comments
 (0)