jdaugherty commented on PR #14737:
URL: https://github.com/apache/grails-core/pull/14737#issuecomment-3267315114

   Running compileGroovy causes a failure similar to code narc's failure: 
   
        
grails-core/grails-core/src/main/groovy/grails/boot/config/tools/ProfilingGrailsApplicationPostProcessor.groovy:
 35: Can't have an abstract method in a non-abstract class. The class 
'grails.boot.config.tools.ProfilingGrailsApplicationPostProcessor' must be 
declared abstract or the method 'void onApplicationEvent(E)' must be 
implemented.
         @ line 35, column 1.
           class ProfilingGrailsApplicationPostProcessor extends 
GrailsApplicationPostProcessor implements BeanPostProcessor {
           ^
   
        1 error
   
   But GrailsApplicationPostProcessor implements an onApplicationEvent() so I'm 
not sure why Groovy is failing to find the inherited method from the parent.  
   
   I tried variations on this code here: 
https://github.com/jdaugherty/groovy5.0.1-inheritance-problem - eventually I 
even included the spring classes and it doesn't fail to compile.  There's some 
edge case I'm missing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to