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

Cast involving raw superclass not recognized as unchecked

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      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

                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: