On Tue, 12 Apr 2022 04:41:06 GMT, liach <d...@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