mkgmap does not compile with Java 8

Michael, The error message suggests you to compile with the -source 1.7 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. If you're using an IDE, then you have to check its docs on how to set your project source config to 1.7. cheers, Paulo 2014-07-12 8:00 GMT-03:00 <mkgmap-dev-request@lists.mkgmap.org.uk>:
Send mkgmap-dev mailing list submissions to mkgmap-dev@lists.mkgmap.org.uk
To subscribe or unsubscribe via the World Wide Web, visit http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev or, via email, send a message with subject or body 'help' to mkgmap-dev-request@lists.mkgmap.org.uk
You can reach the person managing the list at mkgmap-dev-owner@lists.mkgmap.org.uk
When replying, please edit your Subject line so it is more specific than "Re: Contents of mkgmap-dev digest..."
Today's Topics:
1. mkgmap does not compile with Java 8 (Michael Prinzinger)
---------- Mensagem encaminhada ---------- From: Michael Prinzinger <email@mipri.de> To: mkgmap-dev@lists.mkgmap.org.uk Cc: Date: Fri, 11 Jul 2014 15:48:37 +0200 Subject: [mkgmap-dev] mkgmap does not compile with Java 8
Hello,
I hope this is not a FAQ, but I couldn't find an answer anywhere.
When I am trying to compile mkgmap with
java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
running on Windows 7 64 Bit, I get the following errors:
compile: [javac] Compiling 480 source files to F:\mkgmap\trunk\build\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7 [javac] F:\mkgmap\trunk\src\uk\me\parabola\util\MultiHashMap.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 [javac] public V remove(K key, V value ) [javac] ^ [javac] where K,V are type-variables: [javac] K extends Object declared in class MultiHashMap [javac] V extends Object declared in class MultiHashMap [javac] F:\mkgmap\trunk\src\uk\me\parabola\util\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 [javac] public V remove(K key, V value ) [javac] ^ [javac] where K,V are type-variables: [javac] K extends Object declared in class MultiIdentityHashMap [javac] V extends Object declared in class MultiIdentityHashMap [javac] Note: F:\mkgmap\trunk\src\uk\me\parabola\mkgmap\reader\dem\DEM.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors [javac] 1 warning
BUILD FAILED
Is this a known problem? What can I do besides reverting to Java 7?
Thank you,
Michael
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (1)
-
Paulo Carvalho