Open GoogleCodeExporter opened 9 years ago
Then let's make them not final. That seems like an easy fix.
Note that the getters and setters for the fields are public. Why would you
need to access the field directly?
Original comment by yan...@google.com
on 20 Jun 2013 at 12:58
Original comment by yan...@google.com
on 20 Jun 2013 at 12:59
Regarding the access level...
Yes, the members can be accessed via the getter/setters, but then my subclass
would be more like an external class. I'm hoping to create subclasses that are
fairly natural and simple.
I guess my perspective is that, since you have plain setters (ones that do
nothing else but change the value and are not synchronized), why not let a
subclass have direct access. It is functionally no different than my subclass
using the getter/setters but makes for a more natural subclass.
More importantly, why not reflect the access level that I specify in the server
class (where possible)? If I make the attribute protected, or even public, why
override the programmers' own decision when generating the client class?
I realize that you have to worry about mappings between languages, so it is not
as simple as I make it sound, but I still think it could work.
Original comment by t...@malcolmson.ca
on 20 Jun 2013 at 4:14
Original comment by yan...@google.com
on 21 Jun 2013 at 2:08
Original comment by ngmic...@google.com
on 3 Sep 2013 at 8:07
Original comment by yan...@google.com
on 27 Sep 2013 at 12:05
Original issue reported on code.google.com by
t...@malcolmson.ca
on 19 Jun 2013 at 9:46