[OpenJDK 2D-Dev] RFR: 8165981: Consider making some classes in javax.imageio.plugins.tiff final
brian.burkhalter at oracle.com
Tue Oct 18 21:24:00 UTC 2016
One could potentially change all the public getters in non-final classes in javax.imageio.plugins.tiff to be final as in
or go even further and additionally refactor TIFFDirectory to be an interface implemented by the internal TIFFIFD class. In the interest of mitigating to an extent the difficulty encountered by any users potentially migrating from the original JAI Image I/O Tools package, I would however be more in favor of keeping the original proposal in this thread
wherein only TIFFField and TIFFImageReadParam are made final.
On Oct 4, 2016, at 4:13 PM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
> Probably some methods can be made final also (at least setters and getters)?
> because it always a problem when we validate something in the setter(constructor), but the user returns something unspecified from the overriden getter.
> On 03.10.16 22:51, Brian Burkhalter wrote:
>> Good point. I think TIFFIFD needs to be a subclass therefore lets leave
>> TIFFDirectory as is.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the 2d-dev