[🚀 Feature]: Remove deprecated JSON Wire ErrorCodes / Response.status (java)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
調査の方向性
ErrorHandler、ErrorCodec、および一覧にある Response と handshake/codec の呼び出し元から始め、ErrorCodec.decode() が整数ステータスの検索をどのように置き換えられるかを追跡します。public API を変更する前に、Appium の依存関係と提案されている ErrorHandler コンストラクターを確認します。内部のステータス参照箇所が移行され、ErrorCodes の削除パスが必要な Appium リリースを通じて調整されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
ErrorCodes and Response.status/getStatus()/setStatus() are leftover JSON Wire Protocol plumbing. They're still load-bearing in the W3C path: ErrorHandler resolves exceptions via getExceptionType(int) keyed off the integer Response.getStatus(). Removal is two independent efforts.
Interim state landed separately: both are now plain
@Deprecatedwith javadoc pointing at the replacement (noforRemoval, to avoid promising a removal that isn't scheduled and to keep the build warning-free until the migration below happens).
Track A — Response.status integer (internal only)
No external consumer found; doable entirely within this repo.
- Re-point
ErrorHandler(lines 102-104, 258) offgetExceptionType(int)onto the W3Cstatestring viaErrorCodec.decode(). - Migrate remaining internal readers of
getStatus()/setStatus():Response.fromJson,AbstractHttpResponseCodec,W3CHttpResponseCodec,W3CHandshakeResponse,ProtocolHandshake,ResponseConverter. - Flip
Response.status/getStatus()/setStatus()to@Deprecated(forRemoval = true)once the internal callers above are gone (no consumers left to warn). - Remove
Response.status/getStatus()/setStatus().
Track B — ErrorCodes (public API, Appium depends on it)
Appium subclasses it (ErrorCodesMobile extends ErrorCodes) and injects via new ErrorHandler(new ErrorCodesMobile(), true). Requires cross-repo sequencing:
- (Selenium) Make
ErrorCodecextensible — public API to register customstate → exceptionmappings (currently private ctor + private staticERRORSlist). - (Selenium) Add an
ErrorHandlerconstructor takingErrorCodec; oldErrorHandler(ErrorCodes, …)delegates and stays deprecated. - (Appium) Replace the subclass with one registration:
"No such context found" → NoSuchContextException. (then wait for an Appium release) - (Selenium) Mark
ErrorCodes+ErrorHandler(ErrorCodes, …)forRemoval, then remove in a major release.
Have you considered any alternatives or workarounds?
Keep ErrorCodes indefinitely as legacy API and never remove it — needs no Appium coordination, reclaims no code.
Does this apply to specific language bindings?
Java
- 主要言語
- Java
- スター
- 34.6k
- フォーク
- 8.7k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 86
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SeleniumHQ/selenium のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
SeleniumHQ/selenium#18323 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
SeleniumHQ/selenium#17843 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verbose再び着手できるかも @stefanpoia が 25 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
SeleniumHQ/selenium#17836 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
難易度 4/5 1〜2日 初心者へのやさしさ 53/100
SeleniumHQ/selenium#18324 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the command対応中かも @titusfortner が 3 日前に担当しました。 オープンC-py OS-mac
SeleniumHQ/selenium#18312 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
SeleniumHQ/selenium の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
btraceio/jafar#228 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/flink-agents#1395 ·
メンテナーはふだん 1 日以内に返信