Java runtime does not detect background clipboard changes

Originator:andunning
Number:rdar://19779663 Date Originated:2015-02-15
Status: Resolved:
Product:Java Product Version:1.6.0_65
Classification:Serious Bug Reproducible:Always
 
Summary:
The Java runtime does not detect clipboard changes if they are made by a background application. The workaround is to switch to another application and back to the Java application so that the clipboard gets updated.

Steps to Reproduce:
1. While using a Java-based application (e.g. the Oxygen XML editor), copy some text.
2. Have a background application modify the clipboard (e.g. TextExpander).
3. Without leaving the Java-based application, paste the clipboard contents.

Expected Results:
The clipboard as modified by the background application is pasted.

Actual Results:
The contents copied from within the Java-based application is pasted rather than what was placed on the clipboard by the background application. If using TextExpander, for example, inserting a snippet will have the result of pasting the Java application's last clipboard state rather than the snippet contents.

Version:
OS X 10.10.2

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

(Also tested with Java 8.)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!