RFR: 8327225: Revert DataInputStream.readUTF to static final

Claes Redestad redestad at openjdk.org
Tue Mar 5 13:33:49 UTC 2024


On Mon, 4 Mar 2024 17:27:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> It's a bit unusual to have the final modifier on static methods, looks like it goes back to JDK 1.1 at least, not clear if it was intentional.

Right, I was asked by JCK folks to either file a CSR to have the change recorded, or revert. Since the behavior change was not intended and was not a key part of [JDK-8325340](https://bugs.openjdk.org/browse/JDK-8325340) I prefer reverting. If anyone wants to get rid of this and other more or less superfluous `final`s that should be done in a separate, deliberate RFE.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18107#issuecomment-1978780028


More information about the core-libs-dev mailing list