RFR: JDK-8267394: Do not rely on object identity for empty valid Content instance

Pavel Rappo prappo at openjdk.java.net
Tue Jun 1 16:06:19 UTC 2021


On Tue, 1 Jun 2021 15:49:22 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> Can we take the bigger step and make it unnecessary to have/use `isValid`?

Yes.

> the original reasons for `isValid` were, at best, flawed. Is this the time to fix that?

When you say "time", do you mean "this PR" or "physical time"? If you meant the latter, then I find it hard to imagine a simple and correct fix that would also fit in the JDK 17 timeframe.

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

PR: https://git.openjdk.java.net/jdk/pull/4130


More information about the javadoc-dev mailing list