I'm trying to port a program in Java over to Scala, however, I'm running into an error.
I have a line that accesses
value BOOTSTRAP_SERVERS_CONFIG is not a member of org.apache.kafka.connect.runtime.distributed.DistributedConfig
public static final String BOOTSTRAP_SERVERS_CONFIG
Java "fakes" inheritance of static members (when you write
DistributedConfig.BOOTSTRAP_SERVERS_CONFIG, the Java compiler turns it into
WorkerConfig.BOOTSTRAP_SERVERS_CONFIG), Scala doesn't because it wouldn't fit with Scala's approach to statics (using companion objects). So in Scala you can only use