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

clipboard.setContents(Transferable,ClipboardOwner)throws ClassCastException Win

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.0.1
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.0.1
    • CPU:
      generic
    • OS:
      windows_nt
    • Verification:
      Verified

      Description

      clipboard.setContents(Transferable,ClipboardOwner) throws ClasscastException in Windows where as the same method works fine in solaris.

      The Exception thrown in Windows is attacthed(Exception.txt).
      Sample code attached(FileSample.java)
      Neccessary jar file attached(transferable.jar).

      How to Reproduce the Bug:
      -------------------------

      1.)create a file named "copyfile.txt" where you are going to copy the attachments.
      2.)Set the classpath to transferable.jar.
      3.)Compile and run FileSample.java
      4.)A frame pops up with a button(COPY) on it.
      5.)Click the button.
      6.)If the exception thrown is same as the exception attached the bug is reproduced.

      Follow the same steps in solaris the method does not throw any exceptions.

      -----------------------------------------------------------------------------

      The Source code for TransferableObject is attached as TransferableObject.jad.


      ajith.sindhu@Eng 2001-03-21
      -----------------------------------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              rpullanisunw Rakesh Pullanikkad (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: