Potential false negatives on protected methods referenced from child class
還沒有人認領這個 Issue。
評估
研究方向
先查看已連結的 pull request 討論以及本 issue 中描述的 Linkage Checker 行為,然後重現涉及子類別與父類別關係的 protected 方法情境。完成標準是:當函式庫方法從 public 改為 protected 時,Linkage Checker 回報 linkage error,並且涵蓋 class-file 情境。
由索引模型根據 Issue 內容生成。
描述
https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/2183#discussion_r688009905 found an interesting case where Linkage Checker cannot report linkage errors for protected methods that are referenced from a child class. For example, the code below shows red for compilation error but Linkage Checker would not detect it if the relationship is in a class files.
This implies that when
- a method in a library is changing its accessor from public to protected, and
- the caller and callee has child-parent class relationship
Linkage Checker would fail to report the linkage errors. It considers that a protected method is ok to be accessed by child classes.
I'm not sure how to fix it but I think it's worth document here.
- 主要語言
- Java
- 星號
- 165
- 分支
- 82
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
GoogleCloudPlatform/cloud-opensource-java 的其他 Issue
-
Class file versions 65 in linkage checker可能重新可做 @priyanshuvishwakarma273403 於 112 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
GoogleCloudPlatform/cloud-opensource-java#2419 · 1 則留言 · 2 個 reaction ·
-
best practices
難度 1/5 1 小時以內 新手友好度 62/100
-
難度 3/5 1-2 天 新手友好度 55/100
-
難度 2/5 1-3 小時 新手友好度 42/100
-
Add a presubmit CI check for LTS可能重新可做 @diegomarquezp 於 187 天前認領,目前沒有進行中的 PR。 未關閉enhancement p2
GoogleCloudPlatform/cloud-opensource-java#2468 · 1 則留言 · 已指派 1 人 ·
查看 GoogleCloudPlatform/cloud-opensource-java 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
quelea-projection/Quelea#711 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 78/100
ShaftHQ/SHAFT_ENGINE#6909 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100
mudler/parakeet.cpp#99 ·
維護者通常 1 天內回覆
-
[BUG] Re-subscribing the Mono returned by listTools/listResources/listResourceTemplates/listPrompts/listRoots duplicates the results可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
modelcontextprotocol/java-sdk#1174 · 1 個 reaction ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
baomidou/mybatis-plus#7185 ·