This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 10/11/2010 07:28 PM, Per Bothner wrote:On 10/11/2010 07:08 PM, Jamison Hope wrote:I have a number of setters which have the general form:
public <ObjType> setFoo(<FooType> arg) { this.foo = arg; return this; }
This is easy enough to fix, once we figure out the right semantics. I see 3 options.
(2) Just ignore the return value of the setX methods. I.e. have the compiler generate the necessary temporary (either a local variable or on the JVM stack). This does the right thing *assuming* every setX is well-behaved in always returning (this).
This is now implemented. Please try it out.
-- Jamison Hope The PTR Group www.theptrgroup.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |