Status Update
Comments
ar...@google.com <ar...@google.com>
js...@google.com <js...@google.com>
js...@google.com <js...@google.com> #2
Setting a debugging point on that KotlinIllegalArgumentExceptionWithAttachments
, I spotted that that KtFirMemberFunctionSymbolPointer
is data
class's synthetic member, component1
; tried to reproduce that in upstream Kotlin repo (SLC, symbol light class, level), IntelliJ repo (UAST level), and Lint level, no luck.
Then noticed that...
@AdaptedBy(NotAnAdapter::class)
class Example3
@JsonClass(generateAdapter = true)
data class Example3(
@AdaptedBy(CustomAdapter::class) val value1: String,
@AdaptedBy(NotAnAdapter::class) val value2: String
)
If you rename one of them to a different class name, things go well.
Update: note that there is Example4
below them...
za...@gmail.com <za...@gmail.com> #3
Ah! Good spot, sorry for the false alarm!
js...@google.com <js...@google.com> #4
This is just another example of how generous K1's error handling is, but maybe too much. :)
On the flip side, K2's error handling is far behind to catch up... Who can imagine symbol restoration in Analysis API is actually caused by duplicate class names?!
jw...@squareup.com <jw...@squareup.com> #5
I ran into this same crash today upgrading Okio.
Would you consider adding debug information to the exception message? I suspect our project might have duplicate declarations, but I don’t know where to look to find 'em.
Description
When using this PR for the
useK2Uast
in Lint (version 8.4.0-alph09), I see the following crash inMoshiUsageDetector.valid_adapters
test.To run: hardcode the param to
setUseK2Uast()
inBaseSlackLintTest
then run the test.