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

Clipboard: custom data string always transformed into a bytebuffer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx

      Try example from RT-20298.
      The String inserted into clipboard (with custom data format) is transformed into a byte buffer in quantum clipboard:
      Not sure if this is intended, but if it's not and we want to put a string into a clipboard in such case (not serialized java.lang.String), then the following code from QuantumClipboard is causing the issue:

      if ((dataFormat != DataFormat.PLAIN_TEXT &&
                                  dataFormat != DataFormat.HTML) ||
                                  ! (data instanceof String)) {


            morris Morris Meyer (Inactive)
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: