Matthieu Stombellini
01/19/2020, 4:32 PMval lexer = // an instance of LixyLexer, line 180
val exc = assertFailsWith<LixyException> {
lexer.tokenize("....")
}
assertNotNull(exc.message)
assert(exc.message!!.contains("token ends"))
causes this exception:
java.lang.VerifyError: JVMVRFY027 récepteur incompatible avec la classe déclarante; classe=guru/zoroark/lixy/LixyTest$Lixy incoherent matcher results cause exception (end is too far)$lexer$1, méthode=invoke(Lguru/zoroark/lixy/LixyDslEnvironment;)V, pc=26
Exception Details:
Location:
guru/zoroark/lixy/LixyTest$Lixy incoherent matcher results cause exception (end is too far)$lexer$1.invoke(Lguru/zoroark/lixy/LixyDslEnvironment;)V @26: JBinvokevirtual
Reason:
Type 'guru/zoroark/lixy/LixyTest$Lixy incoherent matcher results cause exception (end is too far)$lexer$1$1' (current frame, stack[1]) is not assignable to 'guru/zoroark/lixy/LixyDslEnvironment'
Current Frame:
bci: @26
flags: { }
locals: { 'guru/zoroark/lixy/LixyTest$Lixy incoherent matcher results cause exception (end is too far)$lexer$1', 'guru/zoroark/lixy/LixyDslEnvironment', '[Z' }
stack: { 'guru/zoroark/lixy/LixyDslEnvironment', 'guru/zoroark/lixy/LixyTest$Lixy incoherent matcher results cause exception (end is too far)$lexer$1$1' }
at guru.zoroark.lixy.LixyTest.Lixy incoherent matcher results cause exception (end is too far)(LixyTest.kt:180)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(...snip...)
However, I am unable to replicate this on my CI environment, everything works fine there... Any ideas?Alexey Belkov [JB]
01/21/2020, 7:49 AM