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

[ComboBox, Regression] StackOverflowError when enable edit in runtime and typing "Return" in the textfield.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7

      Description

      8u20 b10. For ComboBox, StackOverflowError is reported when enabling edit in runtime and typing "Return" in the textfield. This is not reproducible in 8, looks like a regression.

      Steps to reproduce:
      1. run attached program, the initial state of the ComboBox is not editable.
      2. click the toggle button "Editable", now the ComboBox is editable.
      3. focus in the TextField of the ComboBox, type "Enter" key.

      StackOverflowError is reported:
      Exception in thread "JavaFX Application Thread" java.lang.StackOverflowError
      at com.sun.javafx.scene.EnteredExitedHandler.dispatchCapturingEvent(EnteredExitedHandler.java:51)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
      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:49)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.Node.fireEvent(Node.java:8211)
      at com.sun.javafx.scene.control.behavior.TextFieldBehavior.fire(TextFieldBehavior.java:181)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callAction(TextInputControlBehavior.java:187)
      at com.sun.javafx.scene.control.behavior.BehaviorBase.callActionForEvent(BehaviorBase.java:218)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callActionForEvent(TextInputControlBehavior.java:136)
      at com.sun.javafx.scene.control.behavior.BehaviorBase.lambda$new$60(BehaviorBase.java:135)
      at com.sun.javafx.scene.control.behavior.BehaviorBase$$Lambda$89/1315600914.handle(Unknown Source)
      ......

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            jennyh Jenny Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: