GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Can polymorphism help to group LinkageProblems?

Aperta
#1,618 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
p3 Tech Debt
Lingua principale
Java
Stelle
163
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

(followup of https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/1604#discussion_r475624772 )

When printing `LinkageProblem`s, grouping them by the target of invalid symbolic references makes the output concise (compared to printing individual instances).

```
(Target Class X) having problem XXX. referenced by
(Source Class A)
(Source Class B)
```

However this format does not work with `AbstractMethodProblem`. As of now, we separate `AbstractMethodProblem` from other problems (using `instanceof`) and print them individually.

Can polymorphism help the grouping LinkageProblems in a better way?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.