-
Notifications
You must be signed in to change notification settings - Fork 228
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
Unable to serialize AtomicBoolean
on Java 17
#308
Comments
You have to open the package for XStream to use reflection. |
This is not a question, @joehni. As demonstrated in #262 (comment) I already know that you have to open the package for XStream to use reflection. But I think this use case should be supported by X-Stream without having to resort to reflection or any custom |
Context
See jenkinsci/docker-plugin#905. When running Jenkins on Java 17 with X-Stream 1.4.19, we see:
Steps to reproduce
Create
xstream/src/test/com/thoughtworks/xstream/converters/extended/AtomicBooleanFieldsTest.java
withand run
mvn clean verify -Dtest=com.thoughtworks.xstream.converters.extended.AtomicBooleanFieldsTest,com.thoughtworks.acceptance.BooleanFieldsTest -DfailIfNoTests=false
on Java 17.Expected results
Note: These are the actual results when running on Java 8 or Java 11.
The tests pass.
Actual results
AtomicBooleanFieldsTest
fails with the same error from the production use case:The text was updated successfully, but these errors were encountered: