You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Mattias Reichel (Jira)" <ji...@apache.org> on 2025/09/08 11:19:00 UTC

[jira] [Created] (GROOVY-11753) Compilation error: Can't have an abstract method in a non-abstract class

Mattias Reichel created GROOVY-11753:
----------------------------------------

             Summary: Compilation error: Can't have an abstract method in a non-abstract class
                 Key: GROOVY-11753
                 URL: https://issues.apache.org/jira/browse/GROOVY-11753
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 5.0.0, 5.0.1
            Reporter: Mattias Reichel


I'm having a hard time reproducing this outside the Grails codebase.

To reproduce:
{noformat}
git clone https://github.com/matrei/grails-core.git
cd grails-core
git checkout groovy-5 # or 9538ca0c458e08f175e57618d0cefc24b59467f4
./gradlew grails-core:compileGroovy{noformat}
 

 
{noformat}
/home/mattias/Projects/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
{noformat}
Build scan: [https://ge.grails.org/s/3xq27upwbybta]

or
{noformat}
./gradlew grails-shell-cli:compileGroovy{noformat}
 
{noformat}
/home/mattias/Projects/grails-core/grails-shell-cli/src/main/groovy/org/grails/cli/profile/commands/CreatePluginCommand.groovy: 34: Can't have an abstract method in a non-abstract class. The class 'org.grails.cli.profile.commands.CreatePluginCommand' must be declared abstract or the method 'void setProfileRepository(org.grails.cli.profile.ProfileRepository)' must be implemented.
 @ line 34, column 1.
   @CompileStatic
   ^
2 errors
{noformat}
Build scan: https://ge.grails.org/s/fgzr4cyi6ji7k

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)