Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5
-
Fix Version/s: 3.0
-
Component/s: None
-
Labels:None
-
Environment:OS: Gentoo Linux; Groovy Version: 1.5.0; JVM: 1.6.0-b105; Hardware: Dual Core HP Laptop
-
Testcase included:yes
Description
Closures defined in base classes are not able to access private methods in the same base class, when invoked from a derived class. Java visibility rules imply that this should not happen. When the private methods are made public, the error disappears. Also, when the closure is converted to a method the problem also disappears. Compiling and running the TestCase class included (along with Base class) should reproduce the problem. It's easier to see the problem than to try and describe it.
Issue Links
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-
- is related to
-
GROOVY-3010
fix private field visibility
-