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:
parent
56a2c11303
commit
28a1462f72
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue