Joern Huxhorn created GROOVY-7844:
-------------------------------------

             Summary: Groovy executes private static methods if signature 
matches best.
                 Key: GROOVY-7844
                 URL: https://issues.apache.org/jira/browse/GROOVY-7844
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.4.6
            Reporter: Joern Huxhorn


- Clone the repository https://github.com/huxi/bugs
- cd bugs/groovy/private-static-call
- ./gradlew

There will be one test failure that is caused by Groovy directly calling a 
private static method in Foo instead of calling the accessible one. Behavior is 
similar if the accessible method is package-private.

The only workaround I found so far was avoiding the name clash by renaming the 
private static methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to