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

[macosx] ClassCastException: CFileDialog cannot be cast to LWWindowPeer

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      generic, x86
    • OS:
      generic, os_x
    • Verification:
      Verified

      Description

      http://java.net/jira/browse/MACOSX_PORT-389 submitted 2011/09/12 by Yuri Nesterenko
      Failing code displays an application modal FileDialog (with a null frame owner). It should stay on top of a Window when setVisible(true) in called on the Window.
      The same exception we have for Toolkit modal FileDialog in similar circumstances etc.
      Stack trace excerpt below:
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> Exception in thread &quot;AWT-EventQueue-0&quot; java.lang.ClassCastException: sun.lwawt.macosx.CFileDialog cannot be cast to sun.lwawt.LWWindowPeer
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at sun.lwawt.LWWindowPeer.setModalBlocked(LWWindowPeer.java:372)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Window.setModalBlocked(Window.java:1497)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Dialog.blockWindow(Dialog.java:1545)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Dialog.checkShouldBeBlocked(Dialog.java:1589)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Window.show(Window.java:1038)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Component.show(Component.java:1650)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Component.setVisible(Component.java:1602)
      <span class=&quot;error&quot;>&#91;2011-09-08T19:56:54.45&#93;</span> at java.awt.Window.setVisible(Window.java:1011)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kizune Alexander Zuev
              Reporter:
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: