Although this doesn't violate EOF commandments, I think it does violate Principle of least astonishment. Here is a discussion of this question on stackoverflow - http://stackoverflow.com/questions/433678/modifying-setter-argument-is-it-hack-or-not
Personally, I'm with with the answer by Bill the Lizard although most of the votes went to the opposite one (i.e. "it's ok to do that"). On Fri, Nov 13, 2009 at 12:49 AM, Ricardo J. Parada <[email protected]> wrote: > > public void setCpt(String value) { > if (value != null) value = value.toUpperCase(); > super.setCpt(value); > } > P.S. I'm using eo-gap generation pattern. So this class extends the _ class > generated by the _WonderEntity.java template. > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/dfrolov%40demax.ru > > This email sent to [email protected] > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
