On Sun, 17 May 2015 21:48:45 +0200
Jonas Stumph Stevnsvig <jo...@stevnsvig.com> wrote:
> I still get failures !?
> tried with a new checkout, as the code page on sf.net suggests, and with
> $ javac -version
> javac 1.7.0_75
>
> Compiling 677 source files to Z:\freecol-git2\build
> Z:\freecol-git2\src\net\sf\freecol\server\ai\EuropeanAIPlayer.java:913: 
> error: method remove in interface Map<K,V> cannot be applied to given types;
>          if (plan.getTarget() != null) tipMap.remove(plan.getTarget(), 
> plan);
>                                              ^
>    required: Object
>    found: Tile,TileImprovementPlan
>    reason: actual and formal argument lists differ in length
>    where K,V are type-variables:
>      K extends Object declared in interface Map
>      V extends Object declared in interface Map
> 1 error

OK, I was reading the wrong doco.  The two argument Map.remove call is new
in Java8.  Remove the ", plan" part of the offending line and you should
get a build.  I am testing whether this causes problems in trunk, and if
it is ok will commit the change.

Cheers,
Mike Pope

Attachment: pgp1VQWxlyCz5.pgp
Description: OpenPGP digital signature

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Freecol-developers mailing list
Freecol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to