diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-13 12:31:26 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-05-13 17:40:45 +0200 |
commit | e948073ae22167082ee672d8ac21507f7b3fa9f7 (patch) | |
tree | 6d1f9c6ef2888203b846cdb9a206483f5d02648f /test/pending | |
parent | d430b03bc11c8fb279d9601fd33f5ac3ab48ed80 (diff) | |
download | scala-e948073ae22167082ee672d8ac21507f7b3fa9f7.tar.gz scala-e948073ae22167082ee672d8ac21507f7b3fa9f7.tar.bz2 scala-e948073ae22167082ee672d8ac21507f7b3fa9f7.zip |
SI-8582 emit InnerClasses attribute in GenBCode
I removed the `-bcode` test since we have a build that passes
`-Ybackend:GenBCode` to all tests.
Short intro do the [`InnerClass` attribute][1]:
- A class needs one `InnerClass` attribute for each of its nested
classes
- A class needs the `InnerClass` attribute for all (nested) classes
that are mentioned in its constant pool
The attribute for a nested class `A$B$C` consists of the long name of
the outer class `A$B`, the short name of the inner class `C`, and
an access flag set describig the visibility.
The attribute seems to be used for reflection.
[1]: http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.6
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/t8582-bcode.check | 2 | ||||
-rw-r--r-- | test/pending/run/t8582-bcode.flags | 1 | ||||
-rw-r--r-- | test/pending/run/t8582-bcode.scala | 16 |
3 files changed, 0 insertions, 19 deletions
diff --git a/test/pending/run/t8582-bcode.check b/test/pending/run/t8582-bcode.check deleted file mode 100644 index 7e96756986..0000000000 --- a/test/pending/run/t8582-bcode.check +++ /dev/null @@ -1,2 +0,0 @@ -class p1.p2.Singleton$Singleton$ -List(class p1.p2.Singleton$Singleton$Singleton$) diff --git a/test/pending/run/t8582-bcode.flags b/test/pending/run/t8582-bcode.flags deleted file mode 100644 index c30091d3de..0000000000 --- a/test/pending/run/t8582-bcode.flags +++ /dev/null @@ -1 +0,0 @@ --Ybackend:GenBCode diff --git a/test/pending/run/t8582-bcode.scala b/test/pending/run/t8582-bcode.scala deleted file mode 100644 index 844ab8ac14..0000000000 --- a/test/pending/run/t8582-bcode.scala +++ /dev/null @@ -1,16 +0,0 @@ -package p1 { - package p2 { - object Singleton { - object Singleton { - object Singleton - } - } - } -} - - -object Test extends App { - import p1.p2._ - println(Singleton.Singleton.getClass) - println(Singleton.Singleton.getClass.getDeclaredClasses.toList) -} |