summaryrefslogtreecommitdiff
path: root/test/files/run/t1167.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2010-12-30 23:53:00 +0000
committermichelou <michelou@epfl.ch>2010-12-30 23:53:00 +0000
commitbf375f7d6375a2e437342a6d3b935048fa3ec545 (patch)
tree34a6d17021ee734f365c6044c4ceea1ad3cde8ea /test/files/run/t1167.scala
parent096bc81a90b746ea3fa8a5bd8eb9009c08a71082 (diff)
downloadscala-bf375f7d6375a2e437342a6d3b935048fa3ec545.tar.gz
scala-bf375f7d6375a2e437342a6d3b935048fa3ec545.tar.bz2
scala-bf375f7d6375a2e437342a6d3b935048fa3ec545.zip
fixed issue with EnclosingMethod attribute.
The above issue was made explicit using the dx tool for the Android SDK to convert Java bytecode to Dalvik bytecode.
Diffstat (limited to 'test/files/run/t1167.scala')
-rw-r--r--test/files/run/t1167.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/t1167.scala b/test/files/run/t1167.scala
index 25e42ffd4d..7386d09a6c 100644
--- a/test/files/run/t1167.scala
+++ b/test/files/run/t1167.scala
@@ -8,6 +8,13 @@ trait Test1 {
}
}
+/* getName
+ * Returns the binary name of the class if this class object represents a
+ * reference type that is not an array type.
+ * getSimpleName
+ * Returns the simple name of the underlying class as given in the source
+ * code. Returns an empty string if the underlying class is anonymous.
+ */
abstract class Foo {
override def toString = getClass.getSimpleName