Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Follow up from GROOVY-11356. Package-private members produce different results. Consider the following:
package p import groovy.transform.* abstract class A { @PackageScope final foo = 'foo' @PackageScope getBar() { 'bar } }
// not package p class C extends p.A { void test() { print getBar() // prints "bar" print bar // also prints "bar" print foo // throws MissingPropertyException } }