Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2
-
None
-
None
-
Java 1.5.0_03 Windows XP
Description
The following code:
class Bubbles {
protected int x = 0;
public String toString()
}
def b = new Bubbles(x:5)
println b
prints 0, not 5. If x is changed to public, it works fine.
Unless I'm missing something, this should throw a run time error that you can't set the protected field/property.
Attachments
Issue Links
- is depended upon by
-
GROOVY-929 Setting private field in Bean constructor fails sliently
- Closed