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
+21
View File
@@ -0,0 +1,21 @@
-- convertValue(map with bad value)
J2: java.lang.IllegalArgumentException (cause: InvalidFormatException)
J3: tools.jackson.databind.exc.InvalidFormatException
-- readValue(file that does not exist)
J2: java.io.FileNotFoundException
J3: tools.jackson.core.exc.JacksonIOException (cause: FileNotFoundException)
-- readValue(stream that throws IOException)
J2: java.io.IOException
J3: tools.jackson.core.exc.JacksonIOException (cause: IOException)
-- writeValueAsString(getter that throws)
J2: com.fasterxml.jackson.databind.JsonMappingException (cause: IllegalStateException)
J3: tools.jackson.databind.DatabindException (cause: IllegalStateException)
-- readValue("{\"id\":null}") into a long
J2: no exception -> Order[id=0, quantity=1, lines=null]
J3: tools.jackson.databind.exc.MismatchedInputException
-- readValue(valid object followed by junk)
J2: no exception -> Order[id=1, quantity=2, lines=null]
J3: tools.jackson.core.exc.StreamReadException
-- readValue(unknown property)
J2: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
J3: no exception -> Order[id=1, quantity=2, lines=null]