FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 789 : parse error when using import statement "expecting EOF, found 'void'" (0137 regression from 0136)
Last modified: 2008-05-31 11:28
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
788
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
chazmatazz
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-05-31 10:29
When using import statement, the parser reports expecting EOF, found 'void'
(regression in 0137 from 0136 and 0135).
Test case:
import processing.xml.*;
void setup() {
size(200,200);
System.out.prinltn("Is the problem with the import statement?");
}
Stack Trace:
processing.app.debug.RunnerException: expecting EOF, found 'void'
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:5599)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3933)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Additional Comment
#1 From fjen 2008-05-31 11:28
please search before posting.thanks!
*** This bug has been marked as a duplicate of
788
***