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

Several NPE's in datatransfer were eliminated causing JCK failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.3.1
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      ladybird
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Problem: Several methods in the package java.awt.datatransfer -- primarily
        methods of the class DataFlavor -- throw NPEs in responsed to a null argument.
        We feel that in several of these places it would be more appropriate to
        generate a more useful exception or assume a default behavior. In a few of
        these places, the behavior of the method has already been changed in kestrel,
        leading to JCK failures. However, rather than revert to the old behavior, we
        would prefer to change the specifications of the methods and update the JCK
        tests.

        The testcases to be modified not to expect NPEs are:

        DataFlavor0117, StringSelection0003, StringSelection0007,
        UnsupportedFlavorException0002.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dmendenhsunw David Mendenhall (Inactive)
                Reporter:
                prssunw Prs Prs (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: