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

Pasting text copied from Adobe Acrobat adds extra invalid character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 8u92
    • javafx

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_92"
      Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
      Java HotSpot(TM) Client VM (build 25.92-b14, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Adobe Acrobat version 11.0.10

      A DESCRIPTION OF THE PROBLEM :
      When text copied from Adobe Acrobat is pasted into a JavaFX TextField or TextArea, the pasted text has an additional trailing Replacement Character (https://en.wikipedia.org/wiki/Specials_%28Unicode_block%29#Replacement_character).

      Text copied from the same PDF file opened in a different application (Foxit Reader) does not exhibit the same behavior.

      The cause of the issue seems to be an additional byte at the end of the clipboard contents. The text is decoded using UTF-16LE, but the content consists of an odd (non-even) number of bytes.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: