Unify Java harness validation error messages
メンテナーはふだん 1 日以内に返信
@weichieh0204 がすでに取り組んでいます。
2026年11月26日 から。
評価
この issue はまだ評価されていません。
説明
Java harness validation errors include the exception class name, while the equivalent checks in C, C++, JavaScript and Python report the message alone. This follow-up covers the existing Java checks together rather than changing only the ancestor guard in #846.
At PR #846 head 5bdd0551268c4c3d8e55e7cc8776e688f533f70a, javaCase in web/compiler-explorer.js serializes caught exceptions with error.toString(). The ancestor guard therefore reports:
java.lang.IllegalArgumentException: Returned ancestor must be an original input node.
The other four runners report:
Returned ancestor must be an original input node.
Existing Java graph, list and tree validation checks use the same exception convention. Tests currently accommodate the prefix with endsWith. These observations are based on source inspection; no additional runtime reproduction was performed for this draft.
Introduce a dedicated harness-validation exception, such as the HarnessCheck suggested in the review comment, whose toString() returns only its message. Use it consistently for harness validation failures while preserving the exception class name for errors thrown by candidate code.
Acceptance criteria:
- Equivalent harness refusals have exactly matching error text across the five runners, including ancestor identity, graph and list checks.
- Candidate-thrown exceptions, including
IllegalArgumentException, retain their class name and message. - Regression tests use exact equality for harness messages and cover candidate-thrown exceptions separately.
- Valid answers, null-result handling and continuation after a per-case refusal retain their existing behavior.
Related work: #725 addresses null graph neighbors; #783 addresses Python and JavaScript runtime-error locations. This follow-up concerns Java harness error formatting.
- 主要言語
- Rust
- スター
- 236
- フォーク
- 153
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 187
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sysprog21/codetrial のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
Inferred void class operations are never checked against the starter's return type対応中かも @papaya0112 が今日担当しました。 オープン
sysprog21/codetrial#871 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwrite対応中かも @BOBOGUAGUA428 が今日担当しました。 オープン
sysprog21/codetrial#869 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Highway Billboard Leasing accepts a solution that greedily leases the largest offer first対応中かも @PeteChiang1211 が今日担当しました。 オープン
sysprog21/codetrial#868 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
sysprog21/codetrial の issue をすべて見る
似ている issue
-
bug bugfix
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
storytold/photocraft#17140 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100
-
bug command Java Edition protocol
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Pumpkin-MC/Pumpkin#4733 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
area:parity status:ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
neilsh/stunt-reel#1133 ·
メンテナーはふだん 1 日以内に返信