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

Can't dispatch SequencedEvent under single threaded AWT/FX mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • tbd
    • 8u45
    • javafx
    • x86_64
    • windows_7

    Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      In SequencedEvent#dispatch, on line 106, CCE occurs if running in single threaded AWT/FX mode, because JavaFX Application Thread is instance of Thread.

      Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: ja
      va.lang.Thread cannot be cast to java.awt.EventDispatchThread
              at java.awt.SequencedEvent.dispatch(SequencedEvent.java:106)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
              at java.awt.EventQueue.access$400(EventQueue.java:97)
              at java.awt.EventQueue$3$1.run(EventQueue.java:702)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: