JDK-8095947 : [Canvas] FX Canvas node does not allow path specifications with missing initial movetos
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-22
  • Updated: 2015-06-12
  • Resolved: 2014-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u20Fixed
Related Reports
Duplicate :  
Relates :  
Description
The HTML5 specification on the path commands indicates that most of them should "ensure that there is a subpath" for the first coordinate, which basically means insert an implicit moveTo(that coordinate) if there are no subpaths.  The methods on the FX Canvas GraphicsContext object throw an exception instead.
Comments
Fixed in the 8udev graphics repository with the following changeset: changeset: 6399:a5bf93565444 date: Mon Mar 03 15:05:41 2014 -0800 summary: Fix RT-35452: Canvas does not allow missing initial movetos http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/a5bf93565444 Tested with the included unit test and the test cases attached to this and the related RT-35627 issues.
03-03-2014

+1
03-03-2014

webrev for fix: http://cr.openjdk.java.net/~flar/RT-35452/webrev.00/ HTML5 path spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#building-paths
01-03-2014

Attaching the FX Canvas node version of the complexshapes HTML test from RT-28286 as Complexshapes.java
22-01-2014

This issue was discovered while creating an FX Canvas node version of the complex path test in RT-28286.
22-01-2014