Hello everyone, I am getting a very strange issue ...
# announcements
m
Hello everyone, I am getting a very strange issue when testing my Kotlin code. The following code:
Copy code
val 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:
Copy code
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?
a
Please consider filing an issue at http://kotl.in/issue with a self-contained code example to reproduce. Thanks!