I'm getting this error: ```Caused by: org.jetbrain...
# announcements
j
I'm getting this error:
Copy code
Caused by: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Argument 2: expected R, but found I
along side a bunch of bytecode. Does anyone know how to read this and how I can figure out what's actually going wrong?
image.png
Found the issue. somehow the compiler can't figure out to provide the default parameters to this
findById
. By providing the exact same that has been provided in the interface it now works.
a
out of curiosity - would that be considered a compiler bug?
s
well, who’s job is it to determine the number of arguments?
or default parameters
j
@stephanmg IntelliJ didn't provide any warnings or error, but when compiling I got this error which was over 300 lines long and 200 of those lines were just byte code, which I didn't google as didn't believe that it would find anything. I did find out where the issue was exactly by looking into this bytecode where I found code messages like this:
I couldn't reproduce this outside my project. But this is basically how the code looked: https://pl.kotl.in/QnUS2lH-X
s
interesting @jeggy
To me (But I’ve little experience with Kotlin so far), this looks like as @alex j asked too, a compiler bug
j
I don't have time right now, but I will try in the weekend to reproduce this in some smaller form. And if I succeed I will report it 🙂
s
that’d be interesting
to me the code looks fine
also i learned about “defaults” right now