Am Montag, 28. August 2006 03:41 schrieb Purple Monkey:
> On 8/27/06, Christian Vest Hansen <[EMAIL PROTECTED]> wrote:
> > Dennis Schridde wrote:
> > > I also get some warnings when compiling them:
> >
> > Odd aswell. Wonder what compiler would give those warnings (mine
> > dosn't), as what I'm doing is provably safe. Oh well. :)
>
> You need to pass the generic's type to the instantiated class as well eg.
>
> Map<String, Game> open_games = new HashMap<String, Game>()
>
> ArrayList<Game> allGames = new
> ArrayList<Game>(open_games.size()+started_games.size());
>
> By the way, I get the errors with javac 1.5.0_07 (sun's) when using -Xlint.
Yes. JavaC notified me that there were warnings and I should try -Xlint.

Patched sources and new compilation are attached.

--Dennis

Attachment: wzmasterserver_src.7z
Description: application/7z

Attachment: wzmasterserver.jar
Description: application/jar

Attachment: pgpa3O58Szj3z.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to