Bug 484 : typing return before {} on the same line throws an Exception
Last modified: 2007-01-18 18:53




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
st33d
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-01-17 10:15
Processing 0123, WinXP, harmless

An exception is reported in the console of the Processing IDE when return
is typed before the string "{}". Any content between the brackets or before
the brackets does not stop this exception being thrown.

Output to console:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
Bounds out of range: -1,1
at processing.app.syntax.JEditTextArea.select(JEditTextArea.java:1162)
at processing.app.EditorListener.keyPressed(EditorListener.java:370)
at
processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1651)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Additional Comment #1 From fry 2007-01-18 18:53
fixed for 0124.