diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2006-07-24 16:10:08 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2006-07-24 16:10:08 +0000 |
commit | f901816b3fe8e4c179529335640cc76951c8974c (patch) | |
tree | f06776674650b302880cb9ec036edce0b1929f7a | |
parent | b2455fcc388e35125adc527a4b4f8021f0b95523 (diff) | |
download | scala-f901816b3fe8e4c179529335640cc76951c8974c.tar.gz scala-f901816b3fe8e4c179529335640cc76951c8974c.tar.bz2 scala-f901816b3fe8e4c179529335640cc76951c8974c.zip |
Removed case class constructors from the mirror...
Removed case class constructors from the mirror class members.
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index b263036dbe..348565b72e 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -445,7 +445,7 @@ 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.isConstructor && !isStaticSymbol(m) ) + m.isMethod && !m.hasFlag(Flags.CASE) && !m.isConstructor && !isStaticSymbol(m) ) { val paramJavaTypes = m.tpe.paramTypes map (t => toTypeKind(t)); val paramNames: Array[String] = new Array[String](paramJavaTypes.length); @@ -1159,11 +1159,14 @@ abstract class GenJVM extends SubComponent { * for interfaces: * - the same as for classes, without 'final' * for fields: - * - public, protected, private + * - public, private (*) * - static, final * for methods: * - the same as for fields, plus: * - abstract, synchronized (not used), strictfp (not used), native (not used) + * + * (*) protected cannot be used, since inner classes 'see' protected members, + * and they would fail verification after lifted. */ def javaFlags(sym: Symbol): Int = { import JAccessFlags._; |