Bug 1366 : Variable length argument lists don't seem to work in processing...
Last modified: 2009-11-01 17:39




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

 

Reporter:
Professor Calculus
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-11-01 14:25
Version number: 1.0.3
OS: Windows Vista on Dell Inspiron 1525
this causes some weird problems:
void foo(int... bar) {
//do stuff
}
this is supposed to let you put in any number of parameters of that type
(int in my example) and store it as an array, but it just gets an error in
processing
here is the "red spew"
processing.app.debug.RunnerException: expecting IDENT, found '.'
at processing.app.Sketch.preprocess(Sketch.java:1362)
at processing.app.Sketch.build(Sketch.java:1473)
at processing.app.Sketch.compile(Sketch.java:1172)
at processing.app.Editor.handleRun(Editor.java:1564)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:318)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
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.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
processing.app.debug.RunnerException: expecting IDENT, found '.'
at processing.app.Sketch.preprocess(Sketch.java:1362)
at processing.app.Sketch.build(Sketch.java:1473)
at processing.app.Sketch.compile(Sketch.java:1172)
at processing.app.Editor.handleRun(Editor.java:1564)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:318)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
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.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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 2009-11-01 17:39
This is covered in Help -> Troubleshooting and the FAQ.

*** This bug has been marked as a duplicate of 598 ***