GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Can polymorphism help to group LinkageProblems?

Đang mở
#1,618 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
p3 Tech Debt
Ngôn ngữ chính
Java
Star
163
Fork
80
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.