RFR: 8327225: Revert DataInputStream.readUTF to static final
Roger Riggs
rriggs at openjdk.org
Mon Mar 4 15:32:52 UTC 2024
On Mon, 4 Mar 2024 13:55:15 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> [JDK-8325340](https://bugs.openjdk.org/browse/JDK-8325340) accidentally removed `final` from the `static final DataInputStream.readUTF` method. This has a minor compatibility impact (allows hiding the method in a subclass, while before that would throw an exception at compile time) and since it was not the intent of the prior change to alter any behavioral semantics here I want to revert that change.
Good catch; it would have been caught by the signature tests but later.
-------------
Marked as reviewed by rriggs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/18107#pullrequestreview-1914625661
More information about the core-libs-dev
mailing list