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;
        }

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: