JDK-6641340 : Java ClipBorad is not compatible with GNOME.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-12-13
  • Updated: 2011-01-19
  • Resolved: 2007-12-13
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Linux linux 2.6.22.12-0.1-default #1 SMP 2007/11/06 23:05:18 UTC i686 i686 i386 GNU/Linux


EXTRA RELEVANT SYSTEM CONFIGURATION :
LapTop

A DESCRIPTION OF THE PROBLEM :
  Toolkit.getDefaultToolkit().getSystemClipboard().getData(DataFlavor.stringFlavor)
works properly.

When you want to paste the content to gedit in gnome, you will find the paste item in popup menu is grayed.

Please see https://bugzilla.novell.com/show_bug.cgi?id=191223

The Java ClipBorad put X window Selection incorrectly,
When he provide X Selection TARGETS, the type of the selection should be ATOM, But java awt provide with TARGETS two. Please see X11R6 ICCCM.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Copy some text from a java application like Notepad, we actually use groupwise.
2. Launch gedit in gnome, in the main text area, right click the mouse, you will find the paste item is grayed.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The paste item is usable.
ACTUAL -
The paste item is grayed out.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
in Java Examples Notepad.
---------- END SOURCE ----------

Comments
EVALUATION duplicate of 6607163
13-12-2007