Bug 805 : Crash instead of syntax error reporting
Last modified: 2008-06-05 04:59




Status:
RESOLVED
Resolution:
DUPLICATE of bug 795
Priority:
P2
Severity:
normal

 

Reporter:
PhiLhoČ
Assigned To:
fry

Attachment Type Created Size Actions
The faulty code crashing the runner. application/octet-stream 2008-06-04 08:05 2.15 KB

Description:   Opened: 2008-06-04 08:04
I found this with v.0136, but found no report of correction in latest
versions. I won't download v.0138 until it has an expert version...
Running with JDK 1.5 or 1.6 (same result) on Windows XP Pro SP2.

I forgot a parenthesis at the end of a if condition. I got the following
stack dump:
processing.app.debug.RunnerException: unexpected token: {
at processing.app.Sketch.build(Sketch.java:1528)
at processing.app.Sketch.handleCompile(Sketch.java:1326)
at processing.app.Editor.handleRun(Editor.java:1142)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:321)
at java.awt.Component.processMouseEvent(Component.java:5485)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Same code in v.0135 displays "Unexpected token: {" and highlights the right
line...
Additional Comment #1 From PhiLhoČ 2008-06-04 08:05
edit]
The faulty code crashing the runner.
Additional Comment #2 From fry 2008-06-04 08:05


*** This bug has been marked as a duplicate of 795 ***
Additional Comment #3 From PhiLhoČ 2008-06-05 04:59
(In reply to comment #2)
> *** This bug has been marked as a duplicate of 795 ***

Mmm, next time I will remember to check closed bugs as well! ;)