RFR: 8284702: Add @since for java.time.LocalDate.EPOCH

liach duke at openjdk.java.net
Tue Apr 12 04:44:42 UTC 2022


On Tue, 12 Apr 2022 03:21:00 GMT, Glavo <duke at openjdk.java.net> wrote:

> `java.time.LocalDate.EPOCH` was introduced in Java 9, but there is no corresponding `@since` in the javadoc. The absence of `@since` makes it impossible for IDEs to check for misuse of it, it may be misused by users targeting Java 8 and crash at runtime.

Hmm, isn't this misuse detected by `--release 8` in javac flags?

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

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


More information about the core-libs-dev mailing list