GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Can polymorphism help to group LinkageProblems?

Open
#1,618 0 comments 0 reactions 0 assignees View on GitHub
p3 Tech Debt
Dominant language
Java
Stars
163
Forks
80
PR merge metrics
No merged PRs in 30d

Description

(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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.