I have an interface from Java
public class IJava
{
...
public java.lang.Class getType();
...
}
It is inherited in Scala
class CScala
{
def getType() = classOf[Foo]
}
It worked in Scala 2.7.7. But in 2.8.0.RC1, I get
type mismatch; found : java.lang.Class[Foo](classOf[Foo])
required: java.lang.Class
How do I get java.lang.Class
in Scala 2.8?