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

Capture conversion implementation breaks a cast test

    XMLWordPrintable

Details

    • 5.0
    • 5.0
    • generic, x86
    • solaris_8, windows_2000

    Description

      The following test case, from
          test/tools/javac/generics/wildcards/pos/CastTest.java line 122
      fails under the recent capture conversion implementation:

           1 interface DA<T> { }
           2 interface DB<T> extends DA<T> { }
           3 interface DC<T> extends DA<Integer> { }
           4
           5 class Main {
           6 Object o = (DC<?>) (DA<?>) null; // <<pass>>
           7 }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: