ClassLoader on scala 2.10

49 views
Skip to first unread message

Friggles

unread,
Mar 18, 2013, 9:33:27 PM3/18/13
to circumfl...@googlegroups.com
Hi,

I've noticed with the scala 2.10 update, when you use circumflex on the play framework, you get ClassNotFound exceptions dealing with the singleton objects

I've had a muck around and identified the line:

orm/relation.scala 3.0-SNAPSHOT:
line 55: val _recordClass: Class[R] = Class.forName(

Looks like using Class.forName from within a jar file doesnt see classes outside of the jar in scala 2.10.

Changing the line to
line 55: val _recordClass: Class[R] = this.getClass().getClassLoader().loadClass(
 
Seems to do the trick. Has anyone else experienced any dynamic class loading weirdness with play 2.1 / scala 2.10?
Reply all
Reply to author
Forward
0 new messages