A test case from recently closed #490, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25150 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
c1698844e8
commit
5abc44a1d8
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue