diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-11-12 18:36:06 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-11-12 18:36:06 +0000 |
commit | 16f241cfe73244de1b8600318c104f81596b3afa (patch) | |
tree | 98969b7e424e8b9f95ad8a56fa8f4513071ce665 /src | |
parent | 17f18b46d558e280548c81d8bca441a4f8180a50 (diff) | |
download | scala-16f241cfe73244de1b8600318c104f81596b3afa.tar.gz scala-16f241cfe73244de1b8600318c104f81596b3afa.tar.bz2 scala-16f241cfe73244de1b8600318c104f81596b3afa.zip |
Fixed ticket #225.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index c19ec8f494..0a56f4daa6 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -526,7 +526,8 @@ abstract class GenJVM extends SubComponent { clasz.cunit.source.toString) for (val m <- clasz.symbol.tpe.nonPrivateMembers; m.owner != definitions.ObjectClass && !m.hasFlag(Flags.PROTECTED) && - m.isMethod && !m.hasFlag(Flags.CASE) && !m.isConstructor && !isStaticSymbol(m) ) + m.isMethod && !m.hasFlag(Flags.CASE) && !m.isConstructor && !isStaticSymbol(m) && + !definitions.ObjectClass.info.nonPrivateMembers.exists(_.name == m.name)) { val paramJavaTypes = m.tpe.paramTypes map (t => toTypeKind(t)); val paramNames: Array[String] = new Array[String](paramJavaTypes.length); @@ -996,9 +997,8 @@ abstract class GenJVM extends SubComponent { crtPC = jcode.getPC() - assert(instr.pos.source.isEmpty || instr.pos.source.get == (clasz.cunit.source), "sources don't match") - val crtLine = instr.pos.line.get(lastLineNr); - /* +// assert(instr.pos.source.isEmpty || instr.pos.source.get == (clasz.cunit.source), "sources don't match") +// val crtLine = instr.pos.line.get(lastLineNr); val crtLine = try { (instr.pos).line.get } catch { @@ -1006,7 +1006,6 @@ abstract class GenJVM extends SubComponent { log("Warning: wrong position in: " + method) lastLineNr } - */ if (b.lastInstruction == instr) endPC(b) = jcode.getPC(); |