I am working on a mixed java/scala project, and I am trying to call a scala object's method from Java. This method takes an Option[Double]
as a parameter. I thought this would work:
Double doubleValue = new Double(1.0);
scalaObj.scalaMethod(new Some(doubleValue));
But Eclipse tells me "The constructor Some(Double) is undefined".
Should I be calling the constructor for scala.Some
differently?