diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index b558c44945..680f973f19 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -471,8 +471,8 @@ abstract class GenJVM extends SubComponent { for (innerSym <- innerClasses.toList.sort(_.name.length < _.name.length)) { var outerName = javaName(innerSym.rawowner) // remove the trailing '$' - if (outerName.endsWith("$")) - outerName = outerName.substring(0, outerName.length - 1) + //if (outerName.endsWith("$")) + //outerName = outerName.substring(0, outerName.length - 1) innerClassesAttr.addEntry(javaName(innerSym), outerName, @@ -1558,8 +1558,9 @@ abstract class GenJVM extends SubComponent { else if (sym == definitions.NullClass) return "scala.runtime.Null$" - if (sym.isClass && !sym.rawowner.isPackageClass) + if (sym.isClass && !sym.rawowner.isPackageClass && !sym.isModuleClass) { innerClasses = innerClasses + sym; + } (if (sym.isClass || (sym.isModule && !sym.isMethod)) sym.fullNameString('/') |