Andrew:
The beans spec says that property 'something' will be addressed through a
getter method 'getSomething()' (note capitalization of 's'). So your getter
method 'getMsg()' is referring to a property 'msg', not 'Msg'. Yes, when
you capitalize 'Msg' you'll get 'Msg', but when Jasper
Greg Trasuk wrote:
Changed 'private String msg' to private String Msg' Result is the same.
I guess it doesn't matter for private fields.
Andrew:
The beans spec says that property 'something' will be addressed through a
getter method 'getSomething()' (note capitalization of 's'). So your
Andrew Guts wrote:
Greg Trasuk wrote:
Changed 'private String msg' to private String Msg' Result is the same.
I guess it doesn't matter for private fields.
Greg is right! I simply overlooked that, and you misunterstood him.
1. You CAN'T use properties that start with a Capital letter!
2.
Boris Folgmann wrote:
Thanks you very much! I've appreciated your and Greg's answers. It was a
real help.
Andrew
Andrew Guts wrote:
Greg Trasuk wrote:
Changed 'private String msg' to private String Msg' Result is the same.
I guess it doesn't matter for private fields.
Greg is right!