Bug 1017 : Inconsistent Class Visibility
Last modified: 2008-11-18 21:04




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

 

Reporter:
tacitdynamite
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-18 20:55
The following will produce the error "Cannot find a class or type named "Two":
class One
{
Two two;
}

class Two
{
//One one;
}
The following will NOT produce the error:
class One
{
//Two two;
}

class Two
{
One one;
}
The following will NOT produce the error:
void setup(){}
void draw(){}
class One
{
Two two;
}

class Two
{
One one;
}

This behavior is the same whether the classes are in different tabs or not.
Somehow, the preprocessor should detect if there are any additional
classes in a file that is not in "intermediate mode."
I'm using 0156 on XP.
Additional Comment #1 From fry 2008-11-18 21:04
The preprocessor isn't magic, we can only do so much. The second/working
version is perfectly consistent with the way that Processing is documented,
and what 95% of the PDE users will want to do.

If you want complete control over class visibility and setup, add .java to
the tab so that the preprocessor is not used.