1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java Wed Mar 14 13:53:41 2012 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java Mon Mar 26 15:27:51 2012 +0100 1.3 @@ -2106,6 +2106,7 @@ 1.4 if (exprtype.constValue() != null) 1.5 owntype = cfolder.coerce(exprtype, owntype); 1.6 result = check(tree, capture(owntype), VAL, resultInfo); 1.7 + chk.checkRedundantCast(localEnv, tree); 1.8 } 1.9 1.10 public void visitTypeTest(JCInstanceOf tree) {