summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala2
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 1e0f7af6e2..de8fa14a13 100644
--- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
+++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
@@ -730,7 +730,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with
def genMethod(m: IMethod) {
if (m.symbol.isStaticConstructor) return
- if (m.symbol.name == nme.getClass_) return
+ if ((m.symbol.name == nme.getClass_) && m.params.isEmpty) return
log("Generating method " + m.symbol.fullName)
method = m