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

Cast involving raw superclass not recognized as unchecked

XMLWordPrintable

    • b67
    • generic
    • generic
    • Verified

        This program doesn't compile:

        interface MyInterface<V> { }
                         
        class MyImpl implements MyInterface {
            MyInterface<Integer> o1 = (MyInterface<Integer>) (MyImpl)null;
            MyImpl o2 = (MyImpl) (MyInterface<Integer>)null;
        }

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: