diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index 1ee592fd8..0e18fcd10 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -795,6 +795,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_) && m.params.isEmpty) return debuglog("Generating method " + m.symbol.fullName) method = m