Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
A (java, sealed) ^ | B (java, non-sealed) ^ | C (groovy)
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:
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
Java 19+ declares java.lang.ref.Reference sealed.
Attachments
Issue Links
- links to