RFR: 8284702: Add @since for java.time.LocalDate.EPOCH
Glavo
duke at openjdk.java.net
Tue Apr 12 05:36:41 UTC 2022
On Tue, 12 Apr 2022 04:41:06 GMT, liach <duke at openjdk.java.net> wrote:
> Hmm, isn't this misuse detected by `--release 8` in javac flags?
Ah, yes, when compiling with `--release 8`, it will prompt `the symbol cannot be found`.
But here's the thing: I'm making some Java 11+ projects compatible with Java 8. Since `module-info.java` needs to be compiled, I actually set up `--release 9` and is compatible with Java 8 by transpiling the bytecode, and I check the whole project through IDEA to catch API abuse.
For the most part, IDEA works just fine, but it misses `java.time.LocalDate.EPOCH`. The weird crash led me to it, but IDEA didn't warn me, and the lack of `@since` confused me for a while.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8192
More information about the core-libs-dev
mailing list