java8-to-25: fix the Base64 replacement (sun.misc wraps with a bare newline) and add the wrapping probe

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
Claude
2026-12-03 23:46:26 +05:30
parent 94f8a0e003
commit 9d05be0c2c
5 changed files with 44 additions and 2 deletions
+5
View File
@@ -32,3 +32,8 @@ if [ -n "${JDK17:-}" ]; then
{ echo '$ java -cp classes-built-by-jdk8 com.ankurm.legacy.App # JDK 17, the middle of the staged path'
"$JDK17/bin/java" -cp "$WORK/c8" com.ankurm.legacy.App 2>&1 | clean; } > "$OUT/03b-jdk8-classes-on-jdk17.txt"
fi
# Is the obvious sun.misc replacement byte-for-byte the same? (JDK 8, where both exist.)
rm -rf "$WORK/b64"; mkdir -p "$WORK/b64"
"$JDK8/bin/javac" -nowarn -XDignore.symbol.file -d "$WORK/b64" "$ROOT/probes/base64/Wrap.java" 2>&1 | clean | grep -v -e proprietary -e BASE64Encoder -e '\^' -e warning
{ echo '$ java Wrap # JDK 8, encoding 100 zero bytes'; "$JDK8/bin/java" -cp "$WORK/b64" Wrap 2>&1 | clean; } > "$OUT/28-base64-wrapping.txt"