Problem: Creating an OSGi Bundle with both Scala and Java code inside the Eclipse Framework.
Result: Currently too difficult to bother.
Issue: Classpath and Builder : After editing the .project file like said in both this and this articles, the main issue is that the building of the code into a single bin folder, seems to have some issues. If you have a package nz.maori.geek, like me, and you have the Scala class in nz.maori.geek, references in Scala to nz.maori.geek say that classes in this package are not found.
Solution: More time mucking round, or research into the problem, which I dont have as this is a spike.
Workaround: in the two articles discussed above give a good guide into creating a Scala bundle, this is not mixed, but at least there is decent support for it, I have not come across any major problems yet. From the Scala bundle just expose some code that implements a Java interface (because the Java editor still doesnt like Scala methods), as a exported package and use.
0 comments:
Post a Comment