Bug 831 : basic mode shows PApplet code added by preprocessor in error message
Last modified: 2008-07-27 20:07




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

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-06-21 06:05
this:

println() = print() + "\n";

will give this error:

PApplet {public void setup() {println() = print() + "\n";
^
2 errors

which shows part of the PApplet code added by the preprocessor which might be confusing for
beginners .. well, actually many people.

F
Additional Comment #1 From fjen 2008-06-21 06:06
os-x, rev 142, java 1.5x that is ...
Additional Comment #2 From fry 2008-06-21 06:13
is it showing in the console, or up in the error bar?
Additional Comment #3 From fjen 2008-06-21 15:59
error bar says: "unexpected type"
console says:

javax.xml.transform.stream.*; import org.xml.sax.*; import org.xml.sax.ext.*; import
org.xml.sax.helpers.*; public class Temporary_6332_3725 extends PApplet {public void setup()
{println() = print() + "\n";
^
2 errors

F
Additional Comment #4 From fry 2008-06-25 14:39
k, so that's two problems, will take care of both.
Additional Comment #5 From fry 2008-07-27 20:07
fixed for 0143, using ecj instead of javac.