You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2025/03/09 17:55:00 UTC

[jira] [Resolved] (GROOVY-11579) Reproduction of GROOVY-11548 with Generic Parameters

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

Eric Milles resolved GROOVY-11579.
----------------------------------
    Fix Version/s: 5.0.0-alpha-13
       Resolution: Fixed

https://github.com/apache/groovy/commit/fc776ff11b974335b522080319f3009aedced34d

> Reproduction of GROOVY-11548 with Generic Parameters
> ----------------------------------------------------
>
>                 Key: GROOVY-11579
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11579
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 4.0.26
>            Reporter: Xiaotian Ma
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 5.0.0-alpha-13
>
>
> {code:java}
> interface I<T0> {
>     abstract T0 func()
> }
> abstract class A {
>     final String func() {
>         return "A"
>     }
> }
> class B extends A implements I<String> {}
> {code}
> Reproduction of [GROOVY-11548|https://issues.apache.org/jira/browse/GROOVY-11548] with Generic Parameters.
> Groovy 4.0.26:
> {code:java}
> A.groovy: -1: You are not allowed to override the final method func() from class 'A'.
> @ line -1, column -1.
> 1 error{code}



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