IS classOf[] in scala 2.8 different from 2.7?
- by redtank
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.ClassFoo
required: java.lang.Class
How do i get java.langClass in Scala 2.8