I am new to Scala, so please bear any bloopers in my code. I'm trying to re-engineer some Scala code that has been given to me. When I'm trying to use Java inheritance, I get type mismatch; found error highlighted in eclipse.
I'm using sbt to generate eclipse artifacts and I'm able to import the project in eclipse.The code with the error is given below.
The interface:
public interface InnerClassGen {
static public interface IFactory {
InnerInter innerInt = null;
/** A String giving the canonical value of symbol. */
//@ pure
Integer value();
@Override
String toString();
}
}
public class InnerClassImpl implements InnerClassGen {
static public class Node implements IFactory{
@Override
public Integer value() {
// TODO Auto-generated method stub
return null;
}
}
}
The relevant Scala file :
object SMTExprVisitor {
protected var NODE: InnerClassGen.IFactory = new InnerClassImpl.Node()
}
class SMTExprVisitor{
.....
}
I would like to know where I'm going wrong. Can someone also point me to relevant links if any?