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

Data placed on Clipboard incompatable with Quattro Pro

XMLWordPrintable

    • x86
    • windows_xp

        FULL PRODUCT VERSION :
        java version "1.5.0-beta2"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
        Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Using Quattro Pro 12 release 12.0.0.238

        A DESCRIPTION OF THE PROBLEM :
        When using Java to place tab-delimited data on the System Clipboard, the data can be pasted properly into Microsoft Excel. However, it is NOT pasted properly into Corel Quattro Pro 12. Corel is interpreting this as some kind of link to a file.

        (I'm reporting this to Sun because this is a change from Java 1.3.1, where this worked fine. 1.3.1 isn't listed under "Regression," so I'm noting it here.)

        Further, inspecting the contents of the System clipboard via clipbrd.exe shows that the dataflavors put on the clipboard changed between Java 1.3.1 and Java 1.5. I suspect that that it related to the bug in the Quattro Pro interaction.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        (1) Run the enclosed Java code, which places an incredibly simple tab-deliited string on the Clipboard, against J2SE version 1.5 (or 1.4).

        (2) Start Quattro Pro 12 in Quattro Pro mode,

        (3) Celect a cell and hit Ctrl-V to paste into it.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        I expected the numbers to appear as a "grid" of numbers, as they do when I paste into Microsoft Excel, or when I do a "Paste Special" in Quattro Pro.


        ACTUAL -
        When I run the code against Java 1.3, the paste worked as expected. However, when I run it against Java 1.4 or 1.5, the numbers were pasted into a single cell in Quattro Pro, as some kind of "hyperlink" to a file.

        Also, use clipbrd.exe after running the enclosed Java code against Java 1.3, and again after running against Java 1.5. You'll note that the data flavors on the Windows System clipboard have changed between Java reelases. Is this possibly related?

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.awt.*;
        import java.awt.datatransfer.*;

        public class Clip
        {
            public static void main(String[] args)
            {
                // Put the data on the Clipboard.
                String s = "1\t2\n3\t4\n";
                StringSelection ss = new StringSelection(s);
                Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
            }
        }
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Using Paste Special in quattro Pro handles the clipboard data fine.

        Release Regression From : 1.3
        The above release value was the last known release where this
        bug was not reproducible. Since then there has been a regression.

              bagiras Oleg Pekhovskiy (Inactive)
              dav Andrei Dmitriev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: