[
https://issues.apache.org/jira/browse/GROOVY-7917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15436048#comment-15436048
]
ASF GitHub Bot commented on GROOVY-7917:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/394
GROOVY-7917: Sub class can't override final static property
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy7917
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/394.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #394
----
commit 5f5dec72bc8f1e84ac9c29341968017a49ea7c5f
Author: paulk <[email protected]>
Date: 2016-08-25T00:47:47Z
GROOVY-7917: Sub class can't override final static property
----
> Sub class can't override final static property
> ----------------------------------------------
>
> Key: GROOVY-7917
> URL: https://issues.apache.org/jira/browse/GROOVY-7917
> Project: Groovy
> Issue Type: Bug
> Components: class generator
> Affects Versions: 2.4.7
> Reporter: Caleb Ott
>
> Running the code below, "Derived Class" is expected to be printed out, but
> instead "Base Class" is printed.
> {code:java}
> class Base {
> static final String CONST = "Base Class"
> }
> class Derived extends Base {
> static final String CONST = "Derived Class"
> }
> println Derived.CONST
> {code}
> When writing this same code in Java, "Derived Class" is properly printed out.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)