Monday, February 18, 2008

Groovy isn't groovy when it comes to access modifiers in java

Last night, I was mucking around and noticed something odd -- Groovy ignores access modifiers of your class properties (members). What's worse is that it's known, and yet the developers and designers don't seem to wanna be bothered right now. Isn't that lovely?

2 comments:

Scott Hickey said...

Of course, this is not just a Groovy thing. They are conveniently ignored by Java's reflection API as well

Robby O'Connor said...

of course, but you don't have to go out of your way to get at them in groovy...