scala question

4 views
Skip to first unread message

William la Forge

unread,
Apr 29, 2010, 7:21:23 AM4/29/10
to scala-london
Is this a good place to ask a scala question?

I'm working on an actor-based database implementation, and want to convert to Scala 2.8. Using Maven and the database is broken into a series of sub-projects.

is it OK to convert one sub-project to 2.8? I.E. Can I mix Scala versions so long as they are compiled to separate jar files?

Thanks!

Bill la Forge 

Rustem.Suniev

unread,
Apr 29, 2010, 7:25:52 AM4/29/10
to London Scala User Group
Hi William,
As far as know the byte code of 2.7 and 2.8 can be different.
So you would rather upgrade the whole thing.
Regards,
Rustem

Kevin Wright

unread,
Apr 29, 2010, 7:37:18 AM4/29/10
to scala-...@googlegroups.com
If you have subprojects that are truly separate in different classloaders (i.e. web apps, OSGi) then they can theoretically each have a different version of the scala library, but you'll then run into issues passing scala objects back and forth between the two.

In the same loader, no, you can't have two versions of scala both in scope, you'll suffer from any number of unpleasant and tricky classpath problems.  2.7 and 2.8 are incompatible at both source and binary level and absolutely should not be mixed.

Unless you need to release to production in the very near future, then I'd strongly advise that you upgrade to 2.8 and take advantage of the many many improvements that it offers.



--
Kevin Wright

mail/google talk: kev.lee...@googlemail.com
wave: kev.lee...@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

William la Forge

unread,
Apr 29, 2010, 9:35:02 AM4/29/10
to scala-london, AgileWikiDevelopers
Thanks guys!
Reply all
Reply to author
Forward
0 new messages