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

Hi Thanks, I committed a fix so that it now compiles with Java 8. A new method was added to Map interface in Java 8 which conflicts with a method we were using. I renamed it. Note that there are alight differences in the results if you run with Java 8, they are probably harmless ordering related differences but best to be aware. ..Steve
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)
BUILD FAILED
Is this a known problem? What can I do besides reverting to Java 7?

Steve Ratcliffe schrieb: Hello,
Thanks, I committed a fix so that it now compiles with Java 8.
Thank you Steve, I was able to compile mkgmap now and also could build my map.
Note that there are alight differences in the results if you run with Java 8, they are probably harmless ordering related differences but best to be aware.
As far as I have seen so far, everything looks fine. What kind of problems would you expect most likely (if any)? A distorted display, routing problems, problems with the search index or anything else? Michael

On 13/07/14 17:09, Michael Prinzing wrote:
As far as I have seen so far, everything looks fine. What kind of problems would you expect most likely (if any)? A distorted display, routing problems, problems with the search index or anything else?
I'm not really expecting any problems, and if there are any they are likely to be minor and only affecting some very particular situation. ..Steve
participants (3)
-
Michael Prinzing
-
Michael Prinzinger
-
Steve Ratcliffe