exceptions: Jackson 3 unchecked JacksonException hierarchy, Spring Boot 4.2 error handling, OpenRewrite and sed migration

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
Claude
2026-12-03 23:41:56 +05:30
parent 26f64bc184
commit f97ec4e014
71 changed files with 2210 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# exceptions: Jackson 3 errors, unchecked
Companion code for
[JsonProcessingException Is Gone in Jackson 3](https://ankurm.com/jackson-3-jsonprocessingexception-jacksonexception/).
The explanations are in the article; this folder holds the code and its captured output.
Verified with Temurin 25.0.5.1, Jackson 3.3.0 and 2.23.0 (3.1.8 and 3.2.4 for one comparison),
Spring Boot 4.2.0 (which manages Jackson 3.1.8), rewrite-maven-plugin 6.46.1 with rewrite-jackson 1.29.0.
```bash
./scripts/run-all.sh # regenerates every file in output/ (needs JDK 25, Maven, git, GNU sed)
```
| Path | What it is |
|---|---|
| `src/main/java` | `E01`-`E09`: hierarchy, triggers, silent catch, J2/J3 differences, location, stack traces, handling, custom deserializers, missing primitives |
| `src/broken` | files that must not compile; `scripts/broken.sh` records javac's message |
| `boot/` | Spring Boot 4.2.0 app and tests: no advice, naive advice, corrected advice, `@Transactional` rollback, `RestClient` |
| `migration/before` | a small Jackson 2 project with five behaviour tests |
| `migration/after` | the OpenRewrite result plus three hand fixes (marked `FIX`) |
| `scripts/migrate.sh` | runs OpenRewrite and a sed script on copies, records diffs and test results |
| `output/` | `0x` plain Java, `2x` Spring Boot, `3x` migration |