[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] Java Objects == Groovy objects as seen via
From: Chris Poirier <cpoirier () dreaming ! org>
Date: 2004-09-19 20:44:28
Message-ID: 20040919164219.D42846 () nocturne ! dreaming ! org
[Download RAW message or body]
Hi George,
> public class Item { public String ASIN; }
>
> The field ASIN is noted in the error message as not being public. The
> same class in Java (exactly) works fine. The error message notes five
> fields are present in the Item class.
>
> What behind the scenes alterations does Groovy do that show up in the
> class objects when accessed via reflection?
At present, Groovy never generates actual public member variables. It
instead generates a private member variable and public accessors.
Later,
Chris.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic