RFR: 8263358: Update java.lang to use instanceof pattern variable [v5]

Patrick Concannon pconcannon at openjdk.java.net
Mon Mar 22 17:33:44 UTC 2021


On Mon, 15 Mar 2021 13:49:56 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> yes,
>> javac should emit a warning in that case, that also the answer of Brian.
>> 
>> https://mail.openjdk.java.net/pipermail/amber-spec-experts/2021-March/002925.html
>
> Then we should use an unbounded wildcard here and in similar places to avoid "rawtype" warnings in the future.

I've added the wildcard to the pattern variable check now. See b89027c

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

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


More information about the core-libs-dev mailing list