poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53625] setters should return "this" rather than void
Date Sun, 12 Aug 2012 10:20:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53625

Yegor Kozlov <yegor@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Yegor Kozlov <yegor@dinom.ru> ---
Unfortunately we cannot change setters to return "this" becasue POI must be
binary-compatible wuth existing code.

If we make this change then the old code would work ONLY if you re-compile it
against the latest build of POI.
If you simply change the return type and replace the POI jar then Java will not
be able to find the new methods and throw NoSuchMethodError.

Yegor

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message