Repository navigation
Releases
3.1.0-M3
What's Changed
- Fix #627: Reuse registered serializer and deserializer instances by @sharanggupta in #787
- Fix #651: Support TIME_IN_MILLIS and locale-only @JsonbDateFormat on creator parameters by @sharanggupta in #786
- Fix #609: Reject a JSON array or object where a value is expected by @sharanggupta in #788
- Fix #652: Apply a class adapter to values of a type known at runtime by @sharanggupta in #789
- Fix #456: Do not call toString() of an object whose setter fails by @sharanggupta in #792
- Deserialize creators and records with the CASE_INSENSITIVE naming strategy by @sharanggupta in #796
- test: colliding property names with CASE_INSENSITVE by @KyleAure in #800
- test: JsonbTypeDeserialzier on record & JsonbTypeAdapter on sets by @KyleAure in #797
- localization: standardize (de)serialization error messages by @KyleAure in #793
- fix: DynamicMapSerializer poisoned state [dev] by @KyleAure in #810
- fix: ensure NumberFormat parse()/format() methods are synchronized [dev] by @KyleAure in #814
New Contributors
- @sharanggupta made their first contribution in #787
Full Changelog: 3.1.0-M2...3.1.0-M3
3.0.6
3.1.0-M2
What's Changed
- Fix duplicated word in JsonbException message by @cruiztorresj in #752
- feat: add support for virtual attributes on records by @KyleAure in #754
- test: verify how yasson behaves in regard to TCK challenge by @KyleAure in #744
- refactor: remove -Djava.locale.providers=COMPAT by @KyleAure in #761
- fix: give tests meaningful names by @KyleAure in #759
- fix: check on possible null pointer dereference by @rng70-or in #621
- test: jsonbTransient tests on record by @KyleAure in #763
- dep: update CDI to EE 12 version by @KyleAure in #769
- test: jsonb type adapater on records by @KyleAure in #770
- Last event method removed by @KyleAure in #767
- test: collection of records and compact constructor by @KyleAure in #771
- test: parser location used in JsonbDeserializer by @KyleAure in #745
- fix: serialization of subtype collections without properties by @KyleAure in #776
- test:
@JsonbTypeInfoname collision by @KyleAure in #777 - dep: update jsonb-api to 3.1.0-M2 by @KyleAure in #782
- fix: DeserializationModelCreator at root level by @KyleAure in #785
New Contributors
- @cruiztorresj made their first contribution in #752
- @rng70-or made their first contribution in #621
Full Changelog: 3.1.0-M1...3.1.0-M2
3.1.0-M1
What's Changed
- Prep next dev cycle org.eclipse.yasson:yasson:3.1.0-SNAPSHOT by @KyleAure in #731
- fix: performance pipeline by @KyleAure in #728
- fix: handle maformed resources [URL, URI] by @KyleAure in #706
- test: ensure YassonParser implements JsonParser default methods by @KyleAure in #727
- [655] java.sql.Time throws java.lang.UnsupportedOperationException when serialized by @lvydra in #671
New Contributors
Full Changelog: 3.0.5...3.1.0-M1
3.0.5
Project updates
- Update Maven group id from
org.eclipsetoorg.eclipse.yasson
(PR #729)
Yasson is the last eclipse project to directly publish to theorg.eclipsenamespace. All other projects use their own namespace. We will publish to theorg.eclipse.yassonnamespace going forward and the Eclipse Foundation will work with Sonatype to publish a relocation pom to the old group:archive location.
Bug Fixes
-
NPE when serializing
java.sql.Timestampwith a custom date-time formatter
(PR #725, Issue #577)
SqlTimestampSerializercast its argument toTemporalAccessor, butjava.sql.Timestampdoes not implement that interface, causing aNullPointerExceptionwhenever a custom formatter was configured. The fix convertsTimestamptoInstantbefore formatting, matching the existingjava.util.Dateserialization handling path. -
YassonParser.isIntegralNumber()throwsJsonbExceptioninstead ofIllegalStateException
(PR #710, Issue #707)
The JSON-B specification requiresJsonParser.isIntegralNumber()to throwIllegalStateExceptionwhen the parser state is notVALUE_NUMBER. Yasson incorrectly propagated an internalJsonbException, breaking custom deserializers that caughtIllegalStateExceptionto differentiate numeric from string values. -
Serialization throws
IllegalStateExceptionfor self-referencing generic types
(PR #683, Issue #682)
A prior fix for aStackOverflowErrorinReflectionUtils.resolveTypeArguments()introduced a regression: when the resolved type and the type-to-resolve were identical (e.g., recursive hierarchies likeUniformTree<T extends UniformTree<T>>), anIllegalStateExceptionwas thrown. The fix returns the already-resolved type directly in this case. -
@JsonbTypeSerializernot applied toObject-typed properties with a specific runtime type
(PR #690, Issue #689)
When a property was declared asObjectbut held an instance of a class annotated with@JsonbTypeSerializer, the custom serializer was silently ignored. Yasson now performs runtime type discovery to locate annotation-based serializers, ensuring consistent behaviour regardless of the declared property type. -
@JsonbTypeDeserializer/@JsonbTypeSerializernot recognised for types inside container elements
(PR #686,vIssue #685)
Type-level@JsonbTypeDeserializerand@JsonbTypeSerializerannotations were not applied when the annotated type appeared as an element or value of a container (Map,Collection, array,Optional). The fix ensures the value-type class model is consulted during custom de/serialization for container elements. -
JsonStructureToParserAdapter.getValue()throwsUnsupportedOperationException
(PR #694, Issue #673)
JsonStructureToParserAdapterdid not implement thegetValue()method required by theJsonParserAPI. This caused anUnsupportedOperationExceptionin customJsonbDeserializerimplementations that calledjp.getValue()to handle polymorphic payloads (string or object).
Test Improvements
- Locale-dependent failures in
DocumentationExampleTest
(PR #721, Issue #717)
Number-format tests used the system default locale, causing build failures on non-en_USsystems (e.g.,de_ATwhere the decimal separator is a comma). The locale is now fixed toen_USin the affected test POJOs, and a dedicated CI workflow has been added to verify locale-independent behaviour.
New Contributors
- @jamezp made their first contribution in #661
- @jmini made their first contribution in #667
- @jbaesner made their first contribution in #664
- @KyleAure made their first contribution in #699
- @redmitry made their first contribution in #694
Full Changelog: 3.0.4...3.0.5
3.0.4
What's Changed
- Support retrieving lower bound from TypeVariable in Collection attribute by @amoscatelli in #580
- Eliminate Stream in #wrapInCommonSet by @marschall in #605
- Integrate parsson 1.1.7 by @lukasj in #644
Full Changelog: 3.0.3...3.0.4
3.0.3
3.0.2
What's Changed
- Value access calls toString() on failure, potentially leading to infinite loop #570
- @JsonbTransient does not work on abstract classes #572
- JsonValue.NULL is no longer passed to JsonValue extending types #574
- Null in Optional type fields should not fail #576
Full Changelog: 3.0.1...3.0.2
3.0.1
3.0.0
What's Changed
- JSON-B API 3.0.0 support
- Yasson deserialization and serialization rework in #537
- Remove log noise in #548
- Date in millis handled as a number in #550
- Records should not use default constructor if available in #552
Full Changelog: 2.0.4...3.0.0