GitHub user paulk-asert opened a pull request: https://github.com/apache/groovy/pull/781
GROOVY-8732: @CompileStatic refers to private field in parent class Currently JavaBean style getters aren't recognised before some preliminary provisions are made for the case of accessing the private field in places where that is allowed. The change is just not to proceed with those provisions if the JavaBean getter is detected. You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/groovy groovy8732 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/781.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 #781 ---- commit 2b4c33317f34d52c5fbeb0846639597a5f6b86fe Author: Paul King <paulk@...> Date: 2018-08-09T08:12:08Z GROOVY-8732: @CompileStatic refers to private field in parent class Currently JavaBean style getters aren't recognised before some preliminary provisions are made for the case of accessing the private field in places where that is allowed. The change is just not to proceed with those provisions if the JavaBean getter is detected. ---- ---