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

Copying String with "\r\n" to Clipboard duplicates "\r"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Backports

        Description

        Copying text with "\r\n" to the clipboard and retrieving it outside of this very instance (eg in 2nd launch application, native application like notepad++) has duplicated the "\r" entry.

        Steps to reproduce:
        * Launch application
        * Hit copy button
        * Hit paste button
        * EVERYTHING OK
        * Now launch the application a second time
        * Hit paste

        Observation:
        * the string size has been increased by 1 char

          Attachments

          1. Main.java
            2 kB
          2. Main.java
            2 kB
          3. patch-8172561.patch
            0.7 kB
          4. Test.java
            0.4 kB

            Issue Links

              Activity

                People

                Assignee:
                ddhill David Hill (Inactive)
                Reporter:
                tschindl Tom Schindl
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: