Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

static methods may have local variables too, some day

  • Loading branch information...
commit 449da43b1ac56596ebb3dfa4b9855c43c6c2b64f 1 parent 8f58457
Miguel Garcia magarciaEPFL authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
1  src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
View
@@ -1625,6 +1625,7 @@ abstract class GenASM extends SubComponent with BytecodeWriters with GenJVMASM {
jmethod = clinitMethod
jMethodName = CLASS_CONSTRUCTOR_NAME
jmethod.visitCode()
+ computeLocalVarsIndex(m)
genCode(m, emitVars = false, isStatic = true)
jmethod.visitMaxs(0, 0) // just to follow protocol, dummy arguments
jmethod.visitEnd()
Please sign in to comment.
Something went wrong with that request. Please try again.