Small babystep to show Scala -> Java mapping in reflection.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25321 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2011-07-18 14:02:26 +00:00
parent 56a2c11303
commit 28a1462f72
1 changed files with 4 additions and 1 deletions

View File

@ -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