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

Capture conversion implementation breaks a cast test

XMLWordPrintable

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

      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 }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: