From d430b03bc11c8fb279d9601fd33f5ac3ab48ed80 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 13 May 2014 15:13:39 +0200 Subject: Fix BeanInfo generation for GenBCode --- test/files/jvm/beanInfo/Test_2.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/jvm/beanInfo/Test_2.scala (limited to 'test/files/jvm/beanInfo/Test_2.scala') diff --git a/test/files/jvm/beanInfo/Test_2.scala b/test/files/jvm/beanInfo/Test_2.scala new file mode 100644 index 0000000000..fa9b6e1391 --- /dev/null +++ b/test/files/jvm/beanInfo/Test_2.scala @@ -0,0 +1,17 @@ +object Test extends App { + val info = java.beans.Introspector.getBeanInfo(classOf[p.C]) + + println("property descriptors") + + val pds = info.getPropertyDescriptors + for (pd <- pds) { + println(s"${pd.getName} -- ${pd.getPropertyType} -- ${pd.getReadMethod} -- ${pd.getWriteMethod}") + } + + println("method descriptors") + + val mds = info.getMethodDescriptors + for (md <- mds) { + println(s"${md.getName} -- ${md.getMethod}") + } +} -- cgit v1.2.3