hg: jdk7/tl/langtools: 3 new changesets
Rémi Forax
forax at univ-mlv.fr
Thu Aug 19 15:21:05 UTC 2010
> Changeset: d6fe0ea070aa
> Author: mcimadamore
> Date: 2010-08-19 11:52 +0100
> URL: http://hg.openjdk.java.net/jdk7/tl/langtools/rev/d6fe0ea070aa
>
> 6885255: Improve usability of raw warnings
> Summary: raw warnings should be disabled in (i) instanceof expressions and (ii) when java.lang.Class is not parameterized
> Reviewed-by: jjg
>
> ! src/share/classes/com/sun/tools/javac/comp/Attr.java
> ! src/share/classes/com/sun/tools/javac/comp/Check.java
> ! test/tools/javac/warnings/6747671/T6747671.java
> ! test/tools/javac/warnings/6747671/T6747671.out
> + test/tools/javac/warnings/6885255/T6885255.java
> + test/tools/javac/warnings/6885255/T6885255.out
>
We discuss [1] about Class<rawtype> and instanceof rawtype but not cast
(rawtype).
I was able to convince myself that a cast with a raw type doesn't harm.
I just want to be sure that it's ok for everybody (Martin?).
Rémi
[1] http://blogs.sun.com/mcimadamore/entry/diagnosing_raw_types
More information about the core-libs-dev
mailing list