[ 
https://issues.apache.org/jira/browse/GROOVY-11292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun updated GROOVY-11292:
--------------------------------
    Description: 
Java 19+ build fails because of "cannot be non-sealed as it has no sealed 
parent" emitted by Groovy compiler.
{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}

Java 19+ declares \{{java.lang.ref.Reference}} \{{sealed}}.


  was:
"cannot be non-sealed as it has no sealed parent" is emitted by Groovy compiler 
and just emitted when using Java 19+, because Java 19+ 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}




> 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
>
> Java 19+ build fails because of "cannot be non-sealed as it has no sealed 
> parent" emitted by Groovy compiler.
> {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}
> Java 19+ declares \{{java.lang.ref.Reference}} \{{sealed}}.



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

Reply via email to