groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8731) improve error message for the case of static and instance methods with same signature when using traits
Date Sun, 05 Aug 2018 13:42:00 GMT

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

Paul King updated GROOVY-8731:
------------------------------
    Description: The current behavior is to weave in the static method if it is the first
found but then complain later during class verification. I propose to change this to detect
the conflict earlier and provide a friendlier compiler error message.  (was: It seems that
behaving more like Java would do for a static method in an interface (favoring instance method)
would be better than the current error caught during class verification with both the instance
and static method weaved into the class.)

> improve error message for the case of static and instance methods with same signature
when using traits
> -------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8731
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8731
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>
> The current behavior is to weave in the static method if it is the first found but then
complain later during class verification. I propose to change this to detect the conflict
earlier and provide a friendlier compiler error message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message