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

Cast: write new regression test checking all combinations

    Details

    • Subcomponent:
    • CPU:
      unknown
    • OS:
      generic

      Description

      Cast conversion is an area in which we had many bugs - esp. since the addition of generics to the Java language. Most of those bugs are caused by some unexpected interaction between non-denotable types (added in JDK 5 to support generics), as described in http://blogs.sun.com/mcimadamore/entry/bugs_bugs_bugs.

      It would be nice to have a combo test, like e.g. for type containment (http://hg.openjdk.java.net/jdk7/tl/langtools/file/12d8f7e417fd/test/tools/javac/api/TestContainTypes.java) in order to check all possible combinations of 'source' and 'target' types subject to cast conversion.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dlsmith Dan Smith
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: