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

StackOverFlow with TitledPane inside Accordion component

XMLWordPrintable


      Please see the attached test case , which adds 5 titledpanes to accordion and after 5th it removes top item and adds it back to last.

      Run the project .
      1) Click on the Add button 5 times
      2) Click on "somenum 2" TitledPane and then click on Add button
      3) Click on "somenum 3" TitledPane and then click on Add button
      4) Click on "somenum 3" TitledPane and then click on Add button
      4) Click on "somenum 0" TitledPane

      and we get Stack OverFlowException, also the TitledPane is not longer accessible through mouse



      java.lang.RuntimeException: java.lang.StackOverflowError
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:235)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:491)
      at com.sun.glass.ui.View.notifyMouse(View.java:869)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.StackOverflowError
      at javafx.animation.Timeline$2.compare(Timeline.java:163)
      at javafx.animation.Timeline$2.compare(Timeline.java:160)
      at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
      at java.util.TimSort.sort(TimSort.java:189)
      at java.util.TimSort.sort(TimSort.java:173)
      at java.util.Arrays.sort(Arrays.java:659)
      at javafx.animation.Timeline.updateKeyFrames(Timeline.java:170)
      at javafx.animation.Timeline.access$000(Timeline.java:69)
      at javafx.animation.Timeline$1.onChanged(Timeline.java:96)
      at com.sun.javafx.collections.TrackableObservableList.callObservers(TrackableObservableList.java:50)
      at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:220)
      at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:231)
      at com.sun.javafx.scene.control.skin.TitledPaneSkin.doAnimationTransition(TitledPaneSkin.java:328)
      at com.sun.javafx.scene.control.skin.TitledPaneSkin.setExpanded(TitledPaneSkin.java:159)
      at com.sun.javafx.scene.control.skin.TitledPaneSkin.handleControlPropertyChanged(TitledPaneSkin.java:134)
      at com.sun.javafx.scene.control.skin.SkinBase$3.changed(SkinBase.java:272)
      at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:107)
      at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:367)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
      at javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:123)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:130)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:163)
      at javafx.scene.control.TitledPane.setExpanded(TitledPane.java:155)

            kwwong Kinsley Wong (Inactive)
            srikchan Srikalyan Chandrashekar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: