Search code examples
javascalagenericsreflectionscala-compiler

Scala TypeTag to java.lang.reflect.Type


I wonder if there are some predefined functions in scala (2.10+) to convert a scala TypeTag to a java.lang.reflect.Type.

Note that I have seen this question, but I need complete generic type information at runtime.

If it is not the case I can still implement the mapping my self as I already have custom implementations of java Type.


Solution

  • To the best of my knowledge, there's no such functionality built into our reflection library.