Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6295056

Unchecked cast not reported as unsafe

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      This program compiles without warnings:

      interface Foo {}
      interface Bar<X> {}
      class Test {
          Object m(Foo f) {
              return (Bar<Object>)f;
          }
      }

      See also http://forum.java.sun.com/thread.jspa?threadID=642516

      ###@###.### 2005-07-08 17:34:34 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ahe Peter Ahe
                Reporter:
                ahe Peter Ahe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: