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

MacPasteboard throws ClassCastException on static builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx15
    • None
    • javafx
    • None
    • x86_64
    • os_x

      After JDK-8223760, when trying to copy paste on a JavaFX application statically built running on Mac OS, fails with this exception:

      Exception in thread "JavaFX Application Thread" java.lang.ClassCastException
              at com.oracle.svm.jni.JNIThreadLocalPendingException.set(JNIThreadLocalPendingException.java:42)
              at com.oracle.svm.jni.JNIThreadLocalPendingException.clear(JNIThreadLocalPendingException.java:45)
              at com.oracle.svm.jni.JNIGeneratedMethodSupport.getAndClearPendingException(JNIGeneratedMethodSupport.java:98)
              at com.oracle.svm.jni.JNIGeneratedMethodSupport.rethrowPendingException(JNIGeneratedMethodSupport.java:103)
              at com.sun.glass.ui.mac.MacPasteboard._getUTFs(MacPasteboard.java)
              at com.sun.glass.ui.mac.MacPasteboard.getUTFs(MacPasteboard.java:101)
              at com.sun.glass.ui.mac.MacSystemClipboard.mimesFromSystem(MacSystemClipboard.java:317)
              at com.sun.glass.ui.SystemClipboard.getMimeTypes(SystemClipboard.java:84)
              at com.sun.glass.ui.ClipboardAssistance.getMimeTypes(ClipboardAssistance.java:140)

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: