Bug 556 : saveStrings is not a static method
Last modified: 2007-05-07 15:26




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

 

Reporter:
vect
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-05-07 15:11
One of saveStrings methods is not a static.
Normally it doesn't matter. But I found it when I tried to call saveStrings() out of PApplet
class.
Bug? or is there any reason?

from source 3119:
public void saveStrings(String filename, String strings[]) ......
static public void saveStrings(File file, String strings[]) ......
static public void saveStrings(OutputStream output, String strings[]) ......
Additional Comment #1 From fry 2007-05-07 15:14
not a bug. saveStrings() saves the data relative to the applet's location,
so it cannot be a static method except when using an OutputStream or a File
object.
Additional Comment #2 From vect 2007-05-07 15:26
oh I see. thanks