I have the following Scala trait that I would like to inherit:
trait StreamTableSink[T] extends TableSink[T] {
  /** Emits the DataStream. */
  def emitDataStream(dataStream: DataStream[T]): Unit
}
that extends:
trait TableSink[T] {
  private var fieldNames: Option[Array[String]] = None
  private var fieldTypes: Option[Array[TypeInformation[_]]] = None
  ...
}
But when I inherit it in Java like this:
public abstract class KafkaTableSink implements StreamTableSink<Row> {
  ...
}
I receive the following error:
Error:(29, 8) java: kafka.KafkaAvroTableSink09 is not abstract and does not override abstract method TableSink$$fieldTypes_$eq(scala.Option<typeinfo.TypeInformation<?>[]>) in sinks.TableSink
where KafkaAvroTableSink09 inherits KafkaTableSink
 
    