I tried to compile code containing
class FixedIndexedRepository(override val name: java.lang.String, location: URI) extends FixedIndexedRepo
What extends FixedIndexedRepo , which extends Java class AbstractIndexedRepo
public abstract class AbstractIndexedRepo implements RegistryPlugin, Plugin, RemoteRepositoryPlugin, IndexProvider, Repository { ... protected String name = this.getClass().getName(); ...
Unfortunately, the Scala 2.9.2 compiler stops with an error:
.../FixedIndexedRepository.scala:29: overriding variable name in class AbstractIndexedRepo of type java.lang.String; [error] value name has incompatible type [error] class FixedIndexedRepository(override val name: java.lang.String, location: URI) extends FixedIndexedRepo
How to fix it? What's wrong?
Ezhik source share