ClassLoader on scala 2.10

49 görüntüleme
İlk okunmamış mesaja atla

Friggles

okunmadı,
18 Mar 2013 21:33:2718.03.2013
alıcı 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?
Tümünü yanıtla
Yazarı yanıtla
Yönlendir
0 yeni ileti