You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/01/20 16:26:00 UTC

[jira] [Commented] (GROOVY-11292) Class without sealed parent cannot be non-sealed

    [ https://issues.apache.org/jira/browse/GROOVY-11292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17808933#comment-17808933 ] 

ASF GitHub Bot commented on GROOVY-11292:
-----------------------------------------

daniellansun opened a new pull request, #2037:
URL: https://github.com/apache/groovy/pull/2037

   https://issues.apache.org/jira/browse/GROOVY-11292




> Class without sealed parent cannot be non-sealed
> ------------------------------------------------
>
>                 Key: GROOVY-11292
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11292
>             Project: Groovy
>          Issue Type: Bug
>            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)