summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-07-24 16:10:08 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-07-24 16:10:08 +0000
commitf901816b3fe8e4c179529335640cc76951c8974c (patch)
treef06776674650b302880cb9ec036edce0b1929f7a /src
parentb2455fcc388e35125adc527a4b4f8021f0b95523 (diff)
downloadscala-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.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala7
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._;