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

CSS setting style -fx-stroke-borders throws ClassCastException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • 7u7
    • 8
    • javafx

    Description

      Setting style "-fx-stroke-borders:red 15 10 dashed 5;" throws ClassCastException :


      WARNING: com.sun.javafx.css.StyleHelper transitionToState Failed to set css [StyleableProperty {property: -fx-stroke-borders, converter: StrokeBorderType, initalValue: null, inherits: false, subProperties: [StyleableProperty {property: -fx-border-color, converter: LayeredBorderPaintType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-insets, converter: InsetsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-radius, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-style, converter: LayeredBorderStyleType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-width, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}]}]

      java.lang.ClassCastException: javafx.scene.paint.Color cannot be cast to java.util.List
      at javafx.scene.layout.Region$18.set(Region.java:1180)
      at com.sun.javafx.css.StyleableObjectProperty.applyStyle(StyleableObjectProperty.java:58)
      at com.sun.javafx.css.StyleableProperty.set(StyleableProperty.java:70)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:902)
      at javafx.scene.Node.impl_processCSS(Node.java:7415)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
      at javafx.scene.Node.processCSS(Node.java:7383)
      at javafx.scene.Node.processCSS(Node.java:7377)
      at javafx.scene.Node.processCSS(Node.java:7377)
      at javafx.scene.Scene.doCSSPass(Scene.java:443)
      at javafx.scene.Scene.access$3800(Scene.java:169)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2198)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
      at java.lang.Thread.run(Thread.java:722)

      Attachments

        Issue Links

          Activity

            People

              dgrieve David Grieve
              slugovoy Sergey Lugovoy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: