yahoo / CMAK

CMAK is a tool for managing Apache Kafka clusters
Apache License 2.0
11.8k stars 2.5k forks source link

./sbt clean dist throws Compilation error. No generating /target/universal #663

Open adivardhan opened 5 years ago

adivardhan commented 5 years ago

[error] /Users/jon.doe/kafka-manager/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] /Users/jon.doe/kafka-manager/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

Scala: 2.12 Java: JDK 12

adivardhan commented 5 years ago

Switched to JDK 8 and it works!

Keeping the issue open as this needs to be fixed for JDK 12 (as its compatibility mentions JDK 8+)

roottraveller commented 5 years ago

I am using java 9 for both kafka and Kafka-manager. is the issue still persist in java 9. I am also getting the same error message.

roottraveller commented 5 years ago

I have moved to Java8 and Its working. If anyone fixes it for Java9 please post your solution.