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

PRISM: Reducing the length of an arc from 360 to 0 throws exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • fx1.3
    • fx1.3
    • javafx

      I have an arc which is filled and stroked. I am reducing the length of the arc from 360 to 0. When I reach closer to 0, I get the following exception on the console.

      ------------
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.sun.javafx.runtime.provider.GUIRuntimeProvider.run(GUIRuntimeProvider.java:68)
              at com.sun.javafx.runtime.Entry.start(Entry.java:84)
              at com.sun.javafx.runtime.Main.main(Main.java:80)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: -2
      at com.sun.javafx.geom.BasicStroke$BufferedPath.appendReverse(BasicStroke.java:1786)
              at com.sun.javafx.geom.BasicStroke.createSolidShape(BasicStroke.java:346)
              at com.sun.javafx.geom.BasicStroke.createStrokedShape(BasicStroke.java:299)
              at com.sun.prism.Stroke.createStrokedShape(Stroke.java:121)
              at com.sun.prism.impl.BaseGraphics.draw(BaseGraphics.java:184)
              at com.sun.javafx.sg.prism.NGShape.renderContent(NGShape.java:105)
              at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
              at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
              at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
              at com.sun.javafx.tk.prism.PrismScene$1.run(PrismScene.java:230)
              at com.sun.prism.tk.RunnableEvent.run(RunnableEvent.java:47)
              at com.sun.prism.tk.PrismToolkitImpl.processRenderEvent(PrismToolkitImpl.java:157)
              at com.sun.prism.tk.PrismToolkitImpl.processRenderTasks(PrismToolkitImpl.java:173)
              at com.sun.prism.tk.PrismToolkitImpl.run(PrismToolkitImpl.java:109)
              at com.sun.javafx.tk.prism.PrismToolkit.startup(PrismToolkit.fx:126)

      I reproduced it on WinVista - soma-graphics-scrum-b142 with prism. Not reproducible on Swing pipeline.

            flar Jim Graham
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: