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

[Toys] HelloTreeTableView throws ClassCastException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      raspberry pi
      desktop linux

      Description

      On both linux and r-pi, HelloTreeTableView throws the following ClassCastException:

      <snip>
      Caused by: java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage
      at helloworld.HelloTreeTableView.createNode(HelloTreeTableView.java:546)
      at helloworld.HelloTreeTableView.buildFileBrowserTreeTableView(HelloTreeTableView.java:425)
      at helloworld.HelloTreeTableView.buildFileSystemBrowserTab(HelloTreeTableView.java:303)
      at helloworld.HelloTreeTableView.getContent(HelloTreeTableView.java:114)
      at helloworld.HelloTreeTableView.start(HelloTreeTableView.java:87)
      at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
      at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
      at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication.access$200(GtkApplication.java:48)
      at com.sun.glass.ui.gtk.GtkApplication$6$1.run(GtkApplication.java:149)
      <snip>

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            kselle Lisa Selle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: