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

strokeLineJoin and strokeLineCap attributes of Rectangle are rejected by CSS as java.lang.IllegalArgumentException: unsupported type: JavaType

    Details

      Description

      The following css ( and any combination of the attributes) works fine in version 1.1


      "javafx.scene.shape.Rectangle" {
        strokeLineCap: BUTT; /* BUTT, ROUND, SQUARE */
        strokeLineJoin: BEVEL; /* BEVEL, MITER, ROUND */
      }

      but throws the following in javafx 1.2

      java.lang.IllegalArgumentException: unsupported type: JavaType[javafx.scene.shape.StrokeLineJoin] BEVEL
              at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:411)
              at com.sun.stylesheet.styleable.DefaultStyleable.convertPropertyFromString(DefaultStyleable.java:158)
              at com.sun.stylesheet.Declaration.convertValue(Declaration.java:76)
              at com.sun.stylesheet.Declaration.applyTo(Declaration.java:91)
              at com.sun.stylesheet.Rule.applyTo(Rule.java:221)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:269)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:251)
              at javafx.scene.Scene.applyStylesheets(Scene.fx:332)
              at javafx.scene.Scene.userInit$(Scene.fx:306)
              at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
              at javafxapp.Main.javafx$run$(Main.fx:27)
              at javafxapp.Main.javafx$run$(Main.fx:27)

        Attachments

          Activity

            People

            • Assignee:
              dgrieve David Grieve
              Reporter:
              artsofticjfx ArtSoftica (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: