summaryrefslogtreecommitdiff
path: root/test/files/run/t3897/a_2.scala
blob: 4d9e59ef05a4f502c12ce86f9047387e3b31d118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
object Test {
  def f1(clazz: Class[_]) = (
    clazz.getDeclaredFields.toList 
     . filterNot (_.getName contains "bitmap$")
     . map (f => (f.getName, f.getGenericType))
     . foreach (println)
  )
  def f2(clazz: Class[_]) = (
    clazz.getDeclaredMethods.toList 
     . filterNot (_.getName contains "bitmap$")
     . map (f => (f.getName, f.getGenericReturnType))
     . foreach (println)
  )

  def main(args: Array[String]): Unit = {
    f1(classOf[One])
    f2(classOf[One])
    f1(classOf[Two])
    f2(classOf[Two])
    
    new J_2().javaRun
  }
}