Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-3
-
Fix Version/s: 1.0-JSR-4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
public class Test {
public String x = "hello";
public String getX()
{ return "goodby"; }public static void main(String[] args)
{ final Test t1 = new Test(); System.out.println(InvokerHelper.getMetaClass(t1).getAttribute(t1, "x")); System.out.println(InvokerHelper.getMetaClass(t1).getProperty(t1, "x")); }}
prints
hello
hello
it should print
hello
goodby
http://cvs.codehaus.org/changelog/groovy?cs=MAIN:blackdrag:20050913104620