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

Capture conversion implementation breaks a cast test

    Details

    • Subcomponent:
    • Introduced In Build:
      5.0
    • Introduced In Version:
      5.0
    • CPU:
      generic, x86
    • OS:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: