-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackTraceElement w/ >= Java 9 doesn't deserialize properly #2593
Comments
Unfortunately this can not be supported before adding support for JDK9 or later (in practice JDK11 as that is the first LTS unlike JTK9) -- constructor to pass these properties was added in JDK9 so is not available before. I think this would need something like |
Okay thanks for looking into this, I really appreciate it. Any chance you have a suggestion on a quick and dirty work around? |
@michaelcdillon Hmmh. Could perhaps either copy-paste existing |
Sounds good, thanks. Also thanks for the effort you put in here! |
@michaelcdillon no problem! Also: creating a new module for JDK9 (or JDK11 depending), assuming there might be other types that need support, is not tons of work. Just in case you or anyone else finding this wanted to see where that could lead. Other users could find it useful and we could add it as one of FasterXML modules. |
Fixed. |
Using
ObjectMapper
to serialize and then deserialize aStackTraceElement
results in an instance with null values forclassLoaderName
,moduleName
, andmoduleVersion
. Those elements are present in the serialized form, but then do not make it into the instance supplied byreadValue("...", StackTraceElement.class)
.Versions:
11.0.4
2.10.2
Example Test Case:
Serialize Element Print Statement:
Assertion Failure Output:
The text was updated successfully, but these errors were encountered: