Hi Bas,

thanks, I've changed a few things according to the log. I don't see these 
messages when I compile with OpenJDK 11, but my version is quite old: openjdk 
version "11.0.1" 2018-10-16
I still have to find out how to replace the newInstance() calls.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von 
Sebastiaan Couwenberg <[email protected]>
Gesendet: Donnerstag, 1. Juli 2021 07:17
An: [email protected]
Betreff: [mkgmap-dev] r4793 fails to build (error: reference to forEach is      
ambiguous)

The Debian package build for SVN r4793 fails to build:

    [javac]
/build/mkgmap-0.0.0+svn4793/src/uk/me/parabola/mkgmap/filters/ShapeMergeFilter.java:230:
error: reference to forEach is ambiguous
    [javac]                             byCenter.forEach(i ->
centers.put(i, Area.getBBox(similarShapes.get(i).points).getCenter()));
    [javac]                                     ^
    [javac]   both method forEach(IntConsumer) in IntIterable and method
forEach(Consumer<? super Integer>) in IntIterable match

The full buildlog is attached.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
_______________________________________________
mkgmap-dev mailing list
[email protected]
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to