RFR: 6185110: Undefined behaviour of SampleModel for width, height < 0
Sergey Bylokhov
serb at openjdk.org
Tue Nov 4 00:38:10 UTC 2025
On Fri, 24 Oct 2025 21:15:31 GMT, Phil Race <prr at openjdk.org> wrote:
> I've just tried what you said you did and I don't see any link generated unless you mean the list of "Methods declared class "superclassname"
Yes, that one. I’m pretty sure that in another bug, when we added a method that overrides the parent method without a specification, you convinced everyone that it was fine and no CSR was needed since the spec is identical to the parent class, and the block "Methods declared class "superclassname" is fine.
To achieve that, we simply skipped the spec for the subclass, example:
https://bugs.openjdk.org/browse/JDK-8258373
https://github.com/openjdk/jdk/commit/7afb01dc
I assumed that the subclass only need the spec if there are some difference.
>The problem with that, as I wrote somewhere, perhaps not here, is that it looks to the reader of the source as if there is no javadoc for this method.
Right, but is it a big issue? The method will have the `@Override` annotation to highlight that it overrides the parent method, and it might be better than duplicating all those exceptions.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27754#issuecomment-3483207441
More information about the client-libs-dev
mailing list