xstream icon indicating copy to clipboard operation
xstream copied to clipboard

Converter for `java.util.Optional`

Open xtaixe opened this issue 2 years ago • 0 comments

There are issues with Optional and Java 17. See https://github.com/quarkusio/quarkus/issues/25413

com.thoughtworks.xstream.converters.ConversionException: No converter available
---- Debugging information ----
message             : No converter available
type                : java.util.Optional
converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
message[1]          : Unable to make field private static final java.util.Optional java.util.Optional.EMPTY accessible: module java.base does not "opens java.util" to unnamed module @33723e30
-------------------------------

Is it possible to add a converter for java.util.Optional?

xtaixe avatar May 06 '22 14:05 xtaixe