RFR: 4617681: constructor of BufferedImage throws unexpected IllegalArgumentException
Sergey Bylokhov
serb at openjdk.org
Tue Oct 7 19:52:27 UTC 2025
On Tue, 7 Oct 2025 19:14:59 GMT, Phil Race <prr at openjdk.org> wrote:
>The work and compatibility concerns to address these are out of all proportion to simply documenting what has been true since the very beginning - 27 years plus - without a compelling reason.
What compatibility impact? It has been throwing exceptions all this time, but currently it is allowed to work if we change that in the future, unlike the current proposal, which describes all implementation details as part of the specification, making it much harder to change later.
Instead we can mention "maximum supported length" in the spec and in the "impl section" mention that currently it is the size of the array/maxint,
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27640#discussion_r2411728510
More information about the client-libs-dev
mailing list