[ https://issues.apache.org/jira/browse/GROOVY-11292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun updated GROOVY-11292: -------------------------------- Description: "cannot be non-sealed as it has no sealed parent" is emitted by Groovy compiler and just emitted when using Java 21, because Java 21 declares \{{java.lang.ref.Reference}} \{{sealed}}. {code:java} startup failed: /home/daniel/IdeaProjects/groovy/src/test/org/codehaus/groovy/util/ReferenceManagerTest.groovy: 147: The class 'org.codehaus.groovy.util.ReferenceManagerTest$TestReference' cannot be non-sealed as it has no sealed parent. @ line 147, column 13. private class TestReference<T> ^ 1 error > Task :compileTestGroovy FAILED {code} was: "cannot be non-sealed as it has no sealed parent" is emitted by Groovy compiler and just emitted when using Java 21+ {code:java} startup failed: /home/daniel/IdeaProjects/groovy/src/test/org/codehaus/groovy/util/ReferenceManagerTest.groovy: 147: The class 'org.codehaus.groovy.util.ReferenceManagerTest$TestReference' cannot be non-sealed as it has no sealed parent. @ line 147, column 13. private class TestReference<T> ^ 1 error > Task :compileTestGroovy FAILED {code} > Class without sealed parent cannot be non-sealed > ------------------------------------------------ > > Key: GROOVY-11292 > URL: https://issues.apache.org/jira/browse/GROOVY-11292 > Project: Groovy > Issue Type: Improvement > Reporter: Daniel Sun > Priority: Major > > "cannot be non-sealed as it has no sealed parent" is emitted by Groovy > compiler and just emitted when using Java 21, because Java 21 declares > \{{java.lang.ref.Reference}} \{{sealed}}. > {code:java} > startup failed: > /home/daniel/IdeaProjects/groovy/src/test/org/codehaus/groovy/util/ReferenceManagerTest.groovy: > 147: The class 'org.codehaus.groovy.util.ReferenceManagerTest$TestReference' > cannot be non-sealed as it has no sealed parent. > @ line 147, column 13. > private class TestReference<T> > ^ > 1 error > > Task :compileTestGroovy FAILED > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)