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

[macosx] Copy/Paste between local/remote (via Mac screen sharing) sometimes doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u80, 9
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.7.0_79"
      Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      After you copy something using system clipboard in the remote Java swing app, it seems not updated after you perform copy in local machine.

      ADDITIONAL REGRESSION INFORMATION:
      This issue should have been there for at least one year.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Prepare a simple Java swing application. Something like this is sufficient:

      <main function>
              JFrame f = new JFrame();
              JTextArea t = new JTextArea();
              f.add(t);
              f.setVisible(true);

      2. Compile and open it in remote machine via Screen Sharing (VNC).
      3. In remote type "def".
      4. Copy and paste so that you have "def def".
      5. Go to local, copy anything (say "abc"), such as from browser, note...
      6. Go to remote, in that Java swing app, perform paste.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      def def abc
      ACTUAL -
      def def def

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error message

      REPRODUCIBILITY :
      This bug can be reproduced often.

      ---------- BEGIN SOURCE ----------
      import javax.swing.JFrame;
      import javax.swing.JTextArea;

      public class testApp {
          public static void main(String[] args) {
              JFrame f = new JFrame();
              JTextArea t = new JTextArea();
              f.add(t);
              f.setVisible(true);
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      In remote machine, before pasting into the Java swing app, paste into another application.

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

              Created:
              Updated: