Skip to content

Releases

3.1.0-M3

3.1.0-M3 Pre-release
Pre-release

Choose a tag to compare

@KyleAure KyleAure released this 19 Nov 15:23

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

Full Changelog: 3.1.0-M2...3.1.0-M3

3.0.6

Choose a tag to compare

@KyleAure KyleAure released this 19 Nov 15:22

What's Changed

  • Prep next dev cycle org.eclipse.yasson:yasson:3.0.6-SNAPSHOT by @KyleAure in #730
  • fix: DynamicMapSerializer poisoned state [3.0] by @KyleAure in #809
  • fix: ensure NumberFormat parse()/format() methods are synchronized [3.0] by @KyleAure in #813

Full Changelog: 3.0.5...3.0.6

3.1.0-M2

3.1.0-M2 Pre-release
Pre-release

Choose a tag to compare

@KyleAure KyleAure released this 15 Oct 13:36

What's Changed

New Contributors

Full Changelog: 3.1.0-M1...3.1.0-M2

3.1.0-M1

3.1.0-M1 Pre-release
Pre-release

Choose a tag to compare

@KyleAure KyleAure released this 24 Aug 19:31

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

Choose a tag to compare

@KyleAure KyleAure released this 30 Jul 19:23

Project updates

  • Update Maven group id from org.eclipse to org.eclipse.yasson
    (PR #729)
    Yasson is the last eclipse project to directly publish to the org.eclipse namespace. All other projects use their own namespace. We will publish to the org.eclipse.yasson namespace 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.Timestamp with a custom date-time formatter
    (PR #725, Issue #577)
    SqlTimestampSerializer cast its argument to TemporalAccessor, but java.sql.Timestamp does not implement that interface, causing a NullPointerException whenever a custom formatter was configured. The fix converts Timestamp to Instant before formatting, matching the existing java.util.Date serialization handling path.

  • YassonParser.isIntegralNumber() throws JsonbException instead of IllegalStateException
    (PR #710, Issue #707)
    The JSON-B specification requires JsonParser.isIntegralNumber() to throw IllegalStateException when the parser state is not VALUE_NUMBER. Yasson incorrectly propagated an internal JsonbException, breaking custom deserializers that caught IllegalStateException to differentiate numeric from string values.

  • Serialization throws IllegalStateException for self-referencing generic types
    (PR #683, Issue #682)
    A prior fix for a StackOverflowError in ReflectionUtils.resolveTypeArguments() introduced a regression: when the resolved type and the type-to-resolve were identical (e.g., recursive hierarchies like UniformTree<T extends UniformTree<T>>), an IllegalStateException was thrown. The fix returns the already-resolved type directly in this case.

  • @JsonbTypeSerializer not applied to Object-typed properties with a specific runtime type
    (PR #690, Issue #689)
    When a property was declared as Object but 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 / @JsonbTypeSerializer not recognised for types inside container elements
    (PR #686,vIssue #685)
    Type-level @JsonbTypeDeserializer and @JsonbTypeSerializer annotations 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() throws UnsupportedOperationException
    (PR #694, Issue #673)
    JsonStructureToParserAdapter did not implement the getValue() method required by the JsonParser API. This caused an UnsupportedOperationException in custom JsonbDeserializer implementations that called jp.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_US systems (e.g., de_AT where the decimal separator is a comma). The locale is now fixed to en_US in the affected test POJOs, and a dedicated CI workflow has been added to verify locale-independent behaviour.

New Contributors

Full Changelog: 3.0.4...3.0.5

3.0.4

Choose a tag to compare

@Verdent Verdent released this 12 Sep 11:33

What's Changed

Full Changelog: 3.0.3...3.0.4

3.0.3

Choose a tag to compare

@Verdent Verdent released this 16 May 11:45

What's Changed

  • User defined deserializer/serializer in collection in #588
  • @JsonbCreator uses PropertyNamingStrategy in #584
  • Adding skipObject() and skipArray() methods in #590
  • Close Parsers and Generators in #586

Full Changelog: 3.0.2...3.0.3

3.0.2

Choose a tag to compare

@Verdent Verdent released this 13 Sep 08:42

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

Choose a tag to compare

@Verdent Verdent released this 02 Aug 08:24

What's Changed

  • Incorrect user generator position checking fixed #562
  • Object and array values skip if property is missing #564

Full Changelog: 3.0.0...3.0.1

3.0.0

Choose a tag to compare

@Verdent Verdent released this 22 Jun 09:31

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