[error] /opt/kafka-manager/app/kafka/manager/actor/cluster/KafkaStateActor.scala:102:19: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] cp => props.putAll(cp)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/actor/cluster/KafkaStateActor.scala:102:19: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] cp => props.putAll(cp)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/actor/cluster/KafkaStateActor.scala:265:19: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] cp => props.putAll(cp)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/actor/cluster/KafkaStateActor.scala:265:19: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] cp => props.putAll(cp)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/logkafka81/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/logkafka82/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero10/LogConfig.scala:312:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero10/LogConfig.scala:313:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero11/LogConfig.scala:272:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero11/LogConfig.scala:273:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero81/LogConfig.scala:117:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero82/LogConfig.scala:184:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero90/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero90/LogConfig.scala:177:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/logkafka81/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/logkafka82/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero10/LogConfig.scala:312:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero10/LogConfig.scala:313:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero11/LogConfig.scala:272:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero11/LogConfig.scala:273:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero81/LogConfig.scala:117:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero82/LogConfig.scala:184:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero90/LogConfig.scala:176:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Map[_$3,_$4])
[error] props.putAll(defaults)
[error] ^
[error] /opt/kafka-manager/app/kafka/manager/utils/zero90/LogConfig.scala:177:11: ambiguous reference to overloaded definition,
[error] both method putAll in class Properties of type (x$1: java.util.Map[_, _])Unit
[error] and method putAll in class Hashtable of type (x$1: java.util.Map[_ <: Object, _ <: Object])Unit
[error] match argument types (java.util.Properties)
[error] props.putAll(overrides)
[error] ^
[error] 12 errors found
[info] LESS compiling on 1 source(s)
[info] No documentation generated with unsuccessful compiler run
[error] 12 errors found
[info] Packaging /opt/kafka-manager/target/scala-2.12/kafka-manager_2.12-2.0.0.2-web-assets.jar ...
[info] Done packaging.
[error] (Compile / compileIncremental) Compilation failed
[error] (Compile / doc) Scaladoc generation failed
[error] Total time: 59 s, completed 4 juil. 2019 脿 16:48:06
Getting same error on java 9
same on OpenJdk11
Same here with OpenJdk11 on ubuntu 18.04.
Same on
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
on mac 10.14.6
Same on jdk11
how can slove it?
same on manjaro with openjdk11,
but I got a little confuse, is this means scala can not be compatible with jdk8+ ?
Looks like scala 2.12 issue?
sbt clean dist downloads kafka-manager/target/scala-2.12 and according to https://www.bountysource.com/issues/47389704-ambiguous-reference-when-invoking-properties-putall-in-java-11 this got fixed in scala-2.13
Most helpful comment
Same here with OpenJdk11 on ubuntu 18.04.