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

Unchecked cast not reported as unsafe

XMLWordPrintable

    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: