Repository navigation
Preserve JPA throwable messages with no-arg constructors - #4401
Merged
Merged
Conversation
Generated-by: OpenAI Codex
Contributor
|
@curforever thanks, the fix in |
ramanathan1504
enabled auto-merge (squash)
October 30, 2026 07:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ThrowableAttributeConverterloses a non-null message when restoring a throwable that has a public no-arg constructor but noStringconstructor and no cause. The fallback assignscause(null in that branch) todetailMessage.Assign the parsed
messageinstead. Add round-trip coverage for no-arg-only exceptions with a message, with a cause, and without a message; verify type, message, cause and stack trace. No database-format or public API changes.Validation on Windows / JDK 17.0.5 / the Maven 3.9.16 wrapper:
./mvnw verify site -pl :log4j-jpa: 60 passed, 0 default skips, no failures/errors, including the 8 converter tests. No test selector, additional skip flags or build-file changes in this verification. Local reactor dependencies were installed separately using the converter test selector../mvnw verify sitewas attempted but stops inlog4j-core-test: 1 UTF-8 decoding error inRollingAppenderCronOnStartupTestand 8 timeouts inTlsSocketAppenderTest. Restoring the original production source reproduces the same 9 failing cases. Process-level UTF-8 configuration resolves the decoding error; 8 TLS timeouts remain. Later reactor modules were not reported as passing. Docker/Java 8 and the wider CI matrix were not run locally.AI-generated with OpenAI Codex; the reported tests and checks were executed locally.