[#955] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Nikolay | Iulian | noise | 2007-02-18 10:22:20.0 | |
subject | [contrib #340] Code generation for objects bug | |||
code |
object A { def main(args: Array[String]): Unit = try {try {Console.println("Hello, World!")}} } |
|||
what happened | Two class files were generated, A and A$. While A$ contains InnerClasses attribute, A does not. This prevents JD\ I from seeing A$ as inner class of A, and confuses JVM debugging tools. |
|||
what expected | Please add InnerClasses attribute to the second class file. | |||
[back to overview] |
Nikolay edited on 2007-02-18 10:24:20.0 |
I don't understand why there's InnerClasses attribute in A$. In any case, it (the attribute) is empty. Or maybe that's ok and the contribution is noise because A$ is not an inner class of A. Iuli should know better. |
Iulian edited on 2007-02-21 12:01:47.0 |
I don't understand this contribution either. A$ is the 'real' singleton, and A is just a forwarding 'mirror' class. None is enclosed in the other. |