RFR: 8345263: Make sure that lint categories are used correctly when logging lint warnings [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Dec 6 10:31:38 UTC 2024


On Thu, 5 Dec 2024 22:16:09 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

>> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java line 2972:
>> 
>>> 2970:                     if (belongsToRestrictedPackage(sym)) {
>>> 2971:                         log.warning(tree.pos(),
>>> 2972:                                     Warnings.AccessToMemberFromSerializableLambda(sym));
>> 
>> so this one won't be a lint warning anymore I guess
>
> Actually I think this is another accidentally omitted conversion from `Warnings` to `LintWarnings`.

True, this is a bug in compiler.properties.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22553#discussion_r1873006536


More information about the compiler-dev mailing list