Skip to content

Instantly share code, notes, and snippets.

@cronokirby
Created September 14, 2019 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cronokirby/7a81cd0be399ea7037606728257daab7 to your computer and use it in GitHub Desktop.
Save cronokirby/7a81cd0be399ea7037606728257daab7 to your computer and use it in GitHub Desktop.
java.lang.VerifyError: Bad type on operand stack in putfield
Exception Details:
Location:
rs$line$11$A.<init>(Lscala/runtime/BoxedUnit;)V @2: putfield
Reason:
Type uninitializedThis (current frame, stack[0]) is not assignable to 'rs$line$11$A' (constant pool 43)
Current Frame:
bci: @2
flags: { flagThisUninit }
locals: { uninitializedThis, 'scala/runtime/BoxedUnit' }
stack: { uninitializedThis, 'scala/runtime/BoxedUnit' }
Bytecode:
0x0000000: 2a2b b500 2b2a b700 2eb1
at rs$line$11$A$.apply(rs$line$11:1)
at rs$line$12$.<init>(rs$line$12:1)
at rs$line$12$.<clinit>(rs$line$12)
at rs$line$12.res5(rs$line$12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at dotty.tools.repl.Rendering.$anonfun$3(Rendering.scala:72)
at scala.Option.map(Option.scala:243)
at dotty.tools.repl.Rendering.valueOf(Rendering.scala:72)
at dotty.tools.repl.Rendering.renderVal(Rendering.scala:95)
at dotty.tools.repl.ReplDriver.displayMembers$3$$anonfun$3(ReplDriver.scala:285)
at scala.collection.immutable.List.map(List.scala:222)
at scala.collection.immutable.List.map(List.scala:82)
at dotty.tools.repl.ReplDriver.displayMembers$6(ReplDriver.scala:285)
at dotty.tools.repl.ReplDriver.displayDefinitions$$anonfun$3$$anonfun$2(ReplDriver.scala:311)
at scala.Option.map(Option.scala:243)
at dotty.tools.repl.ReplDriver.displayDefinitions$$anonfun$1(ReplDriver.scala:311)
at dotty.tools.dotc.core.Phases.atPhase$$anonfun$1(Phases.scala:35)
at dotty.tools.dotc.core.Periods.atPhase(Periods.scala:25)
at dotty.tools.dotc.core.Phases.atPhase(Phases.scala:35)
at dotty.tools.dotc.core.Contexts$Context.atPhase(Contexts.scala:71)
at dotty.tools.repl.ReplDriver.displayDefinitions(ReplDriver.scala:317)
at dotty.tools.repl.ReplDriver.compile$$anonfun$2(ReplDriver.scala:241)
at scala.util.Either.fold(Either.scala:191)
at dotty.tools.repl.ReplDriver.compile(ReplDriver.scala:241)
at dotty.tools.repl.ReplDriver.interpret(ReplDriver.scala:193)
at dotty.tools.repl.ReplDriver.loop$1(ReplDriver.scala:127)
at dotty.tools.repl.ReplDriver.runUntilQuit$$anonfun$1(ReplDriver.scala:130)
at dotty.tools.repl.ReplDriver.withRedirectedOutput(ReplDriver.scala:148)
at dotty.tools.repl.ReplDriver.runUntilQuit(ReplDriver.scala:130)
at dotty.tools.repl.Main$.main(Main.scala:6)
at dotty.tools.repl.Main.main(Main.scala)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment