diff options
author | michelou <michelou@epfl.ch> | 2010-12-30 23:53:00 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2010-12-30 23:53:00 +0000 |
commit | bf375f7d6375a2e437342a6d3b935048fa3ec545 (patch) | |
tree | 34a6d17021ee734f365c6044c4ceea1ad3cde8ea /test/files/run | |
parent | 096bc81a90b746ea3fa8a5bd8eb9009c08a71082 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t1167.check | 4 | ||||
-rw-r--r-- | test/files/run/t1167.scala | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/files/run/t1167.check b/test/files/run/t1167.check index 41e4dc4b70..06fedebe71 100644 --- a/test/files/run/t1167.check +++ b/test/files/run/t1167.check @@ -1,3 +1,3 @@ -Test$$anon$1 -Test$$anon$2 +anon$1 +anon$2 $anonfun$testFunc$1 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 |