Using Scala 2.9.1. I have a simple java bean class with an annotation e.g.
@Foo
public class FooBean {
...
}
I have some scala code that calls a method on FooBean.
The Foo annotation class is in a jar that is not accessible to the scala compiler, but FooBean is available in the compiler's classpath. When the scala compiler tries to compile my scala code, it gives me a "Missing dependency" error:
scala> new FooBean
error: error while loading FooBean, Missing dependency 'class package.to.Foo', required by /home/raman/test/jars/foobean.jar(FooBean.class)
<console>:8: error: FooBean does not have a constructor
new FooBean
Has SI-1135 been broken in Scala 2.9.1?
Also, on a side note, I noticed that the subsequent times the compilation is executed, the "Missing dependency" error is no longer shown (which can be confusing):
scala> new FooBean
<console>:8: error: FooBean does not have a constructor
new FooBean
Regards,
Raman