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. _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev