<div dir="ltr">Michael,<div><br></div><div> The error message suggests you to compile with the <font face="courier new, monospace">-source 1.7</font> option. With this option you tell the compiler to treat mkgmap's code with Java 7 specs. You don't need to downgrade your JDK intallation nor wait for mkgmap to upgrade.</div>
<div> If you're using an IDE, then you have to check its docs on how to set your project source config to 1.7. </div><div><br></div><div>cheers,</div><div><br></div><div>Paulo<br><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-07-12 8:00 GMT-03:00 <span dir="ltr"><<a href="mailto:mkgmap-dev-request@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-request@lists.mkgmap.org.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send mkgmap-dev mailing list submissions to<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:mkgmap-dev-request@lists.mkgmap.org.uk">mkgmap-dev-request@lists.mkgmap.org.uk</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:mkgmap-dev-owner@lists.mkgmap.org.uk">mkgmap-dev-owner@lists.mkgmap.org.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of mkgmap-dev digest..."<br>
<br>Today's Topics:<br>
<br>
1. mkgmap does not compile with Java 8 (Michael Prinzinger)<br>
<br><br>---------- Mensagem encaminhada ----------<br>From: Michael Prinzinger <<a href="mailto:email@mipri.de">email@mipri.de</a>><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
Cc: <br>Date: Fri, 11 Jul 2014 15:48:37 +0200<br>Subject: [mkgmap-dev] mkgmap does not compile with Java 8<br><br>
Hello,<br>
<br>
I hope this is not a FAQ, but I couldn't find an answer anywhere.<br>
<br>
When I am trying to compile mkgmap with<br>
<br>
java version "1.8.0_05"<br>
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)<br>
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)<br>
<br>
running on Windows 7 64 Bit, I get the following errors:<br>
<br>
compile:<br>
[javac] Compiling 480 source files to F:\mkgmap\trunk\build\classes<br>
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7<br>
[javac] F:\mkgmap\trunk\src\uk\me\<u></u>parabola\util\MultiHashMap.<u></u>java:57: error: name clash: remove(K,V) in MultiHashMap and remove(Object,Object) in HashMap have the same erasure, yet neither overrides the other<br>
[javac] public V remove(K key, V value )<br>
[javac] ^<br>
[javac] where K,V are type-variables:<br>
[javac] K extends Object declared in class MultiHashMap<br>
[javac] V extends Object declared in class MultiHashMap<br>
[javac] F:\mkgmap\trunk\src\uk\me\<u></u>parabola\util\<u></u>MultiIdentityHashMap.java:57: error: name clash: remove(K,V) in MultiIdentityHashMap and remove(Object,Object) in Map have the same erasure, yet neither overrides the other<br>
[javac] public V remove(K key, V value )<br>
[javac] ^<br>
[javac] where K,V are type-variables:<br>
[javac] K extends Object declared in class MultiIdentityHashMap<br>
[javac] V extends Object declared in class MultiIdentityHashMap<br>
[javac] Note: F:\mkgmap\trunk\src\uk\me\<u></u>parabola\mkgmap\reader\dem\<u></u>DEM.java uses unchecked or unsafe operations.<br>
[javac] Note: Recompile with -Xlint:unchecked for details.<br>
[javac] 2 errors<br>
[javac] 1 warning<br>
<br>
BUILD FAILED<br>
<br>
Is this a known problem? What can I do besides reverting to Java 7?<br>
<br>
<br>
Thank you,<br>
<br>
Michael<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div></div></div>