RFR: 8339852: Fix typos in java.compiler documentation [v2]
Pavel Rappo
prappo at openjdk.org
Fri Sep 13 10:36:04 UTC 2024
On Tue, 10 Sep 2024 21:56:20 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
>> Separately, maybe JLS hasn't done its homework in full? See 9.6.4.1. `@Target`:
>>> It is a compile-time error if the same enum constant appears more than once in the value element of an annotation of type `java.lang.annotation.Target`.
>
> Yes, that use of "type" in 9.6.4.1. feels like an overlook.
Chen, I suggest we integrate this PR as is but ask JLS experts/authors on the issue. In fact, I've already asked. I suspect that JLS 9.6.4.1 is germane to this discussion. If JLS changes "type" to "interface" in JLS 9.6.4.1, we could change these occurrences of "type" to "interface" in `AnnotatedConstruct` too.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20937#discussion_r1758625326
More information about the compiler-dev
mailing list