Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1-beta-1
-
Fix Version/s: None
-
Component/s: class generator
-
Labels:None
-
Environment:Windows XP - Java 1.6.0 - Groovy 1.1-beta-1
-
Number of attachments :
Description
class Test {
private text
private def getText()
private void setText( text )
{ this.text = text * 10 }}
using the previous class with the following script
x = new Test()
x.text = "z"
println x.text
give the result: "ZZZZZZZZZZ"
Issue Links
- relates to
-
GROOVY-1063
No access protection for private static fields
-
-
GROOVY-1591
Private Fields Are Accessible From Other Classes
-
Activity
Russel Winder
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link | This issue duplicates GROOVY-1063 [ GROOVY-1063 ] |
Russel Winder
made changes -
| Link | This issue duplicates GROOVY-1063 [ GROOVY-1063 ] |
Russel Winder
made changes -
| Link | This issue is related to GROOVY-1063 [ GROOVY-1063 ] |
Russel Winder
made changes -
| Link | This issue is related to GROOVY-1063 [ GROOVY-1063 ] |
Russel Winder
made changes -
| Link | This issue relates to GROOVY-1063 [ GROOVY-1063 ] |
Russel Winder
made changes -
| Link | This issue relates to GROOVY-1591 [ GROOVY-1591 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 2.0 [ 13489 ] |
blackdrag blackdrag
made changes -
| Parent | GROOVY-3010 [ 72508 ] | |
| Issue Type | Bug [ 1 ] | Sub-task [ 7 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 2.0 [ 13489 ] |
A serious ramification of this is that "text" is considered a javaBean property and so it can be found in x.properties
. I'm using grails and partially because of this problem I've found that grails will end up calling my private getters because it thinks it's a javabean property when I really don't think it should.