part4custom: add E06 (ValueDeserializer direct) and E07 (mix-in on a record), fix run-all.sh exit-code detection through the grep filter (post #50)

This commit is contained in:
2026-10-08 17:00:53 +00:00
parent 0157132e9d
commit 84070a8dfb
6 changed files with 130 additions and 6 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ for f in $(find src/main/java -name '*.java' | sort); do
grep -q 'public static void main' "$f" || continue
SHORT="${CLASS##*.}"
printf '%-52s' "$SHORT"
if java -cp "$CP" "$CLASS" > "docs/output/$SHORT.txt" 2>&1; then
# grep -v strips the sandbox's injected "Picked up JAVA_TOOL_OPTIONS" proxy-config
# notice from stderr - it is an artifact of this environment, not program output.
# PIPESTATUS[0] (not grep's own exit code) is what tells us whether java itself failed.
java -cp "$CP" "$CLASS" 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' > "docs/output/$SHORT.txt"
if [ "${PIPESTATUS[0]}" -eq 0 ]; then
echo "ok"
else
echo "FAILED"; FAILED=1