You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] Disambiguation IllegalStateException resolving a synthesized record accessor used as a call argument alongside an anonymous class #6768
A single method/constructor invocation that has, in its argument list, both a call to a record's implicitly synthesized accessor and an anonymous class instantiation produces a processing error during type resolution. The anonymous-class argument forces Infer to compute the sibling arguments' standalone types; resolving the accessor return type via AstRecordComponentSym.getTypeMirror reads the record component's ASTClassType, which the disambiguation pass never populated, throwing IllegalStateException: Disambiguation pass should resolve everything except qualified ctor calls.
Exception Stacktrace:
[WARNING] There is 1 PMD processing error:
[WARNING] /J.java: ContextedRuntimeException: java.lang.IllegalStateException: Disambiguation pass should resolve everything except qualified ctor calls
Exception Context:
[1:Resolving type of=!debug only! [ClassType:4:18]String]
[2:Location=!debug only! /J.java:4:18]
[3:Resolving type of=!debug only! [VariableId:4:25]userView]
[4:Location=!debug only! /J.java:4:25]
[5:Resolving type of=!debug only! [MethodCall:6:39]convert(actor.userView(), new Object() {})]
[6:Location=!debug only! /J.java:6:39]
[7:Resolving type of=!debug only! [ConstructorCall:6:65]new Object() {}]
[8:Location=!debug only! /J.java:6:65]
Activity
[java] Fix pmd#6768: Resolve record component types before inference
[java] Fix pmd#6768: Resolve record component types before inference (p…