diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/reflect/runtime/JavaConversions.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/runtime/JavaConversions.scala b/src/compiler/scala/reflect/runtime/JavaConversions.scala index 2ba648cec5..e695c5a9cf 100644 --- a/src/compiler/scala/reflect/runtime/JavaConversions.scala +++ b/src/compiler/scala/reflect/runtime/JavaConversions.scala @@ -238,7 +238,10 @@ trait JavaConversions { self: Universe => /** The Java class corresponding to given Scala class */ - def classToJava(clazz: Symbol): jClass[_] = null // to be done + def classToJava(clazz: Symbol): jClass[_] = classCache.toJava(clazz) { + jClass.forName(clazz.fullName) // todo: what about local classes? + } + def fieldToJava(fld: Symbol): jField = null // to be done def methodToJava(meth: Symbol): jMethod = null // to be done def constrToJava(constr: Symbol): jConstructor[_] = null // to be done |