copying: deep vs shallow copy module (clone() traps, copy constructors, serialization copy, records, defensive copies, collection copies), 17 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4X2xx7RrveVQU9R1N
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Compiles the deliberately broken source and captures the compiler's own message.
|
||||
cd "$(dirname "$0")/.."
|
||||
OUT=$(mktemp -d)
|
||||
{
|
||||
echo '$ javac src/broken/FinalFieldClone.java'
|
||||
javac -d "$OUT" src/broken/FinalFieldClone.java 2>&1 | grep -v '^Picked up JAVA_TOOL_OPTIONS' || true
|
||||
} > output/02-final-field-clone.txt
|
||||
cat output/02-final-field-clone.txt
|
||||
Reference in New Issue
Block a user