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

StringIndexOutOfBoundsException when editing a text field.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u40
    • fx2.1
    • javafx
    • MacOS

      When editing a text field on Mac I ran into the bug below. I have no idea what is wrong, I just noticed that according to the stack trace this is not *directly* related to my code.



      Glass detected outstanding Java exception at -[GlassViewDelegate sendJavaKeyEvent:isDown:]:/HUDSON/workspace/2.1/label/macosx-universal-14/glass/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassViewDelegate.m:361
      Exception in thread "JavaFX Application Thread" java.lang.StringIndexOutOfBoundsException: String index out of range: 1
      at java.lang.String.codePointAt(String.java:715)
      at javafx.scene.control.TextInputControl.deletePreviousChar(TextInputControl.java:647)
      at com.sun.javafx.scene.control.skin.TextFieldSkin.deleteChar(TextFieldSkin.java:424)
      at com.sun.javafx.scene.control.behavior.TextFieldBehavior.deleteChar(TextFieldBehavior.java:130)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deletePreviousChar(TextInputControlBehavior.java:195)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callAction(TextInputControlBehavior.java:128)
      at com.sun.javafx.scene.control.behavior.BehaviorBase.callActionForEvent(BehaviorBase.java:157)
      at com.sun.javafx.scene.control.behavior.TextInputControlBehavior.callActionForEvent(TextInputControlBehavior.java:108)
      at com.sun.javafx.scene.control.behavior.BehaviorBase$1.handle(BehaviorBase.java:121)
      at com.sun.javafx.scene.control.behavior.BehaviorBase$1.handle(BehaviorBase.java:119)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:56)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:162)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:115)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
      at javafx.event.Event.fireEvent(Event.java:171)
      at javafx.scene.Scene$KeyHandler.process(Scene.java:3135)
      at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3065)
      at javafx.scene.Scene.impl_processKeyEvent(Scene.java:1485)
      at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:1916)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:108)
      at com.sun.glass.ui.View.handleKeyEvent(View.java:282)
      at com.sun.glass.ui.View.notifyKey(View.java:596)
      JavaFX application launcher: calling System.exit

            jgiles Jonathan Giles
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: