diff options
Diffstat (limited to 'tests/untried/pos/getClassType.scala')
-rw-r--r-- | tests/untried/pos/getClassType.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/untried/pos/getClassType.scala b/tests/untried/pos/getClassType.scala new file mode 100644 index 000000000..7482788a4 --- /dev/null +++ b/tests/untried/pos/getClassType.scala @@ -0,0 +1,16 @@ +trait IdlBase + +class IdlConcrete extends IdlBase + +class A { + // In general, this method should not need an instance to reflect on it, so + // take a Class[] + def reflect(clazz : Class[_ <: IdlBase]) = { + // Get a list of all its methods and build a hash keyed by method name + // for statistics recording. + } + + // But I also really have an IdlConcrete generated by Spring here... + val idl = new IdlConcrete + reflect(idl.getClass) +} |