Unify Java harness validation error messages
I maintainer di solito rispondono entro 1 giorno
@weichieh0204 ci sta già lavorando.
Dal 26/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 236
- Fork
- 153
- Merge medio
- 1g 9h
- PR unite (30g)
- 187
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sysprog21/codetrial
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Inferred void class operations are never checked against the starter's return typeForse già presa @papaya0112 l’ha presa oggi. Aperta
sysprog21/codetrial#871 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteForse già presa @BOBOGUAGUA428 l’ha presa oggi. Aperta
sysprog21/codetrial#869 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Highway Billboard Leasing accepts a solution that greedily leases the largest offer firstForse già presa @PeteChiang1211 l’ha presa oggi. Aperta
sysprog21/codetrial#868 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sysprog21/codetrial
Issue simili
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
storytold/photocraft#17140 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
-
bug command Java Edition protocol
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Pumpkin-MC/Pumpkin#4733 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
area:parity status:ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neilsh/stunt-reel#1133 ·
I maintainer di solito rispondono entro 1 giorno