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

Cast involving raw superclass not recognized as unchecked

    XMLWordPrintable

Details

    • b67
    • generic
    • generic
    • Verified

    Backports

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: