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

UnsupportedFlavorException not thrown when getting unsupported data from system Clipboard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u25, 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Environment:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Attempting to retrieve an unsupported type of data from the System Clipboard returns null rather than throwing an UnsupportedFlavorException when the test is run on a single VM. The same test performs as expected across VM instances.

      See attached test case.

      Launch an instance of the test case (you can change the sample image URL if required).
      Click the button labelled "Copy", and the console will show "Image copied to clipboard"
      Click the button labelled "Paste", and the console will show "String pasted from clipboard : null"
      This is incorrect behavior.

      Launch a second instance of the same test case.
      On the first window click the "Copy" button.
      On the second window click the "Paste" button. The console shows "java.awt.datatransfer.UnsupportedFlavorException: Unicode String" as expected.

        Attachments

          Activity

            People

            Assignee:
            ssadetsky Semyon Sadetsky (Inactive)
            Reporter:
            tellison Tim Ellison
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: