MacPasteboard throws ClassCastException on static builds

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • jfx15
    • Affects Version/s: None
    • Component/s: 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)

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

              Created:
              Updated:
              Resolved: