Skip to content
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

allow to pass xstream converters to putAll() #565

Open
vladak opened this issue Nov 13, 2024 · 0 comments
Open

allow to pass xstream converters to putAll() #565

vladak opened this issue Nov 13, 2024 · 0 comments

Comments

@vladak
Copy link

vladak commented Nov 13, 2024

With xstream 1.4.21 the serialization seems to got more strict. In our case, we use ChronicleMap to create a map of <BytesRef, Integer>. The xstream does not supply the converter of the Lucene's BytesRef object and hence the serialization fails. With a BytesRef xstream converter, ChronicleMap would still need to allow to pass the converters to the Xstream object created in JsonSerializer.putAll() through AbstractChronicleMap.putAll() which currently accepts only one argument. So, something like void putAll(File fromFile, final List<?> jsonConverters) throws IOException; is needed.

More details on our use case is on oracle/opengrok#4684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant