Re: non-sealed error
Paul King <[email protected]> Tue, 6 May 2025 21:50:07 +1000
| Newsgroups | gmane.comp.lang.groovy.user |
|---|---|
| Message-ID | <CAMbkE7SeKcme-jq9voTO6XupgMjuWCLHAC-EMb4=q5JVDtMd2A@mail.gmail.com> |
Hi Mirco, I have seen this recently too on JDK24 and thought we had fixed it, but I can't see it tracked explicitly in Jira or in recent commit messages. If you can check against 4.0.27-SNAPSHOT or 5.0.0-SNAPSHOT, that would be great. I'll keep looking in the meantime. Cheers, Paul. On Sun, May 4, 2025 at 12:55 AM Mirco Colletta <[email protected]> wrote: > > Hi all, > I've encountered this strange error from groovy STC (4.0.26) moving from JavaFx 23 to JavaFx 24 (and jdk 24) > > "...ResizableRegion cannot be non-sealed as it has no sealed parent" > > but my class does not use explicitly a non-sealed keyword > """ > import javafx.scene.layout.Region > ... > class ResizableRegion extends Region {...} > """ > > this is the hierarchy of the Region class: > javafx.scene.Node (sealed from jfx24) > javafx.scene.Parent (non-sealed from jfx24) > javafx.scene.layout.Region > > I'm a little confused, it seems that groovy applies automatically a wrong "non-sealed" to my class but I don't know why. > > Any idea or possible workarounds? > > Thanks in advance, > Mirco >