diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-09-03 15:14:50 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-09-03 15:14:50 +0000 |
commit | 8e498fed37f541e392e0359a72ec00f45f0d00da (patch) | |
tree | 92768a189d735753e19937fd8e096cf520e8d72b | |
parent | 6ac283c5e4a75601fd4ddba6028977952f5d3eed (diff) | |
download | scala-8e498fed37f541e392e0359a72ec00f45f0d00da.tar.gz scala-8e498fed37f541e392e0359a72ec00f45f0d00da.tar.bz2 scala-8e498fed37f541e392e0359a72ec00f45f0d00da.zip |
Fixed accesses to Scala inner classes from Java.
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index b9b6fe252b..1f8b855acb 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -508,7 +508,7 @@ 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("$") && isTopLevelModule(clasz.symbol)) + if (outerName.endsWith("$") && isTopLevelModule(innerSym.rawowner)) outerName = outerName.substring(0, outerName.length - 1) var flags = javaFlags(innerSym) if (innerSym.rawowner.hasFlag(Flags.MODULE)) |