[
https://issues.apache.org/jira/browse/GROOVY-11292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-11292:
---------------------------------
Fix Version/s: 4.0.29
> 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
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 5.0.0-alpha-6, 4.0.29
>
>
> {code:java}
> A (java, sealed)
> ^
> |
> B (java, non-sealed)
> ^
> |
> C (groovy)
> {code}
> Error "cannot be non-sealed as it has no sealed parent" will occur while
> compiling the class {{{}C{}}}.
> Java 19+ build fails because of the bug:
> {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)