[
https://issues.apache.org/jira/browse/GROOVY-11768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18024299#comment-18024299
]
Eric Milles commented on GROOVY-11768:
--------------------------------------
Your class extends
[BorderPane|https://download.java.net/java/GA/javafx25/docs/api/javafx.graphics/javafx/scene/layout/BorderPane.html],
which has the non-sealed indirect super type {{Parent}} and sealed type
{{Node}} above that.
The checking in {{ClassCompletionVerifier#checkClassForExtendingFinalOrSealed}}
is looking at direct super class and interfaces only. I think the
"explicitNonSealed" is no longer correct, since {{Verifier}} is tagging a class
this way when it is non-final and has a sealed type in its type hierarchy.
> java 25: class cannot be non-sealed as it has no sealed parent.
> ----------------------------------------------------------------
>
> Key: GROOVY-11768
> URL: https://issues.apache.org/jira/browse/GROOVY-11768
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 5.0.1
> Environment: Groovy 5.0.1, Gradle 9.1.0, Java 25
> Reporter: Per Nyfelt
> Priority: Major
>
> Using Gradle 9.1.0 with
> options.release = 25 and
> Groovy 5.0.1 with Java 25 i get the following compilation error:
> > Task :matrix-charts:compileGroovy FAILED
> startup failed:
> /......./matrix/matrix-charts/src/main/groovy/se/alipsa/matrix/charts/charmfx/CharmChartFx.groovy:
> 10: The class 'se.alipsa.matrix.charts.charmfx.CharmChartFx' cannot be
> non-sealed as it has no sealed parent.
> @ line 10, column 1.
> class CharmChartFx extends BorderPane {
> ^
> 1 error
> The same set up with groovy 5.0.1, Gradle 9.1.0 with options.release = 21 and
> Java 21 compiles without any problems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)