JDK-5043020 : Spurious unchecked cast warning
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2004-05-06
  • Updated: 2005-12-30
  • Resolved: 2005-09-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
The following program is given an unchecked cast warning, but there should
be no warning because the cast is statically known to be safe.

class Main {
    <T, U extends T, V extends T> T cond1(boolean z, U x1, V x2) {
        return (z? (T) x1: x2);
    }
}

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon mustang
07-09-2004

EVALUATION A bug. ###@###.### 2004-05-06
06-05-2004