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

ColorPicker throw exceptions

    XMLWordPrintable

    Details

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

      tested on imx6 with code from 8u

      Description

      Using helloworld.HelloColorPicker - when passing on a color and dragging the mouse/touch up, above the first row, array out of bound exceptions is been thrown

      Exception in thread "JavaFX Application Thread" java.lang.ArrayIndexOutOfBoundsException: -2
      at java.util.ArrayList.elementData(Unknown Source)
      at java.util.ArrayList.get(Unknown Source)
      at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:87)
      at com.sun.javafx.scene.control.skin.ColorPalette$ColorPickerGrid$1.handle(ColorPalette.java:593)
      at com.sun.javafx.scene.control.skin.ColorPalette$ColorPickerGrid$1.handle(ColorPalette.java:582)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:204)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3693)
      at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3418)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1676)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2471)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
      at com.sun.glass.ui.View.notifyMouse(View.java:898)
      at com.sun.glass.ui.lens.LensView._notifyMouse(LensView.java:164)
      at com.sun.glass.ui.lens.LensApplication$LensMouseEvent.dispatch(LensApplication.java:391)
      at com.sun.glass.ui.lens.LensApplication._runLoop(LensApplication.java:860)
      at com.sun.glass.ui.lens.LensApplication.access$1800(LensApplication.java:58)
      at com.sun.glass.ui.lens.LensApplication$4.run(LensApplication.java:917)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            Assignee:
            vadim Vadim Pakhnushev
            Reporter:
            ayavnai Assaf Yavnai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: