Informations of varargs can be found here: 
http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html
I personally never use varargs, but from the examples listed in the page 
above it seems that they look like:

public Object method(int arg1, String arg2, long arg3, Object... arguments);

>From: Matthew Toseland <toad at amphibian.dyndns.org>
>Reply-To: Discussion of development issues <devl at freenetproject.org>
>To: Discussion of development issues <devl at freenetproject.org>
>Subject: Varargs functions was Re: [freenet-dev] Compiling with Sun 1.5
>Date: Mon, 19 Sep 2005 15:45:24 +0100
>
>On Mon, Sep 19, 2005 at 01:55:29AM +0000, Yongqian Li wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Some of the warnings about varargs means that it is imprecise about
> > what method should get called.
> >
> > "As an API designer, you should use them sparingly, only when the
> > benefit is truly compelling. Generally speaking, you should not
> > overload a varargs method, or it will be difficult for programmers to
> > figure out which overloading gets
> > called."(http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.ht
> > ml)
> >
> > did you hear that, developers? vararg methods should NOT be
> > overloaded. I think you can safely ignore them. Maybe you can
> > convince some of the developers to get rid of them from 0.7.
>
>Hmm. Where do we use varargs? I haven't put any into 0.7, unless in
>imported code from e.g. Dijjer... What do varargs look like, so I can
>search for them?
> >
> > As for the symbols not found, it means that you are missing some
> > jars. download
> > http://freenetproject.org/snapshots/freenet-contrib-latest.src.tar.bz2
> > and put them in your CLASSPATH.
>--
>Matthew J Toseland - toad at amphibian.dyndns.org
>Freenet Project Official Codemonkey - http://freenetproject.org/
>ICTHUS - Nothing is impossible. Our Boss says so.


><< signature.asc >>




>_______________________________________________
>Devl mailing list
>Devl at freenetproject.org
>http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl



Reply via email to