Oskar Sandberg <md98-osa at nada.kth.se> wrote:
> On Mon, 17 Apr 2000, Theodore Hong wrote:
> > > Also, was there any reason to use the deprecated save() method of
> > > properties rather then store() (they do the same thing according to
> > > the java docs)? We are trying to avoid deprecated api when it isn't
> > > necessary...
> >
> > oh, I didn't know there was a store() method... (looks) I'm developing
> > under Java 1.1, store() doesn't exist there.
>
> Are you sure? I find this odd, because in the 1.2 docs there is no
> "since" warning on the store() method. It does the same thing as save,
> but can throw an IOException apparently.
longitude.doc.ic.ac.uk% javac DataProperties.java
DataProperties.java:51: Method store(java.io.FileOutputStream,
java.lang.String) not found in class Freenet.node.DataProperties.
store(out, descriptor); // from Properties class
^
1 error
I guess it's a choice between compatibility and deprecation (which is,
after all, a form of anti-compatibility).
theo
_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev