Skip to content

ZoneId property using ZoneRegion type hint cannot be read back #2307

Closed

Description

@IvanDanilau

I have an entity with ZoneId property.
When I made parsing String value within ZoneId.of() method I've got ZoneRegion implementation class.
E.g Zone.of("Europe/Paris) -> ZoneRegion("Europe/Paris)
During the Writing entity everything goes fine and have next info in hashes:
3)"timezone"
4) "Europe/Paris"
5) "timezone._class"
6) "java.time.ZoneRegion"
Accordingly, when I try to read value - follow exception occurs:
ConverterNotFoundException: No converter found capable of converting from type [byte[]] to type [java.time.ZoneRegion]

Activity

  1. mp911de commented on Apr 20, 2022

    @mp911de
    Member

    Thanks for reporting the issue. The problem is on our side because we write a more concrete type hint (ZoneRegion instead of ZoneId) while we have only a converter for ZoneId registered. We can likely skip type hints on the reading side for types that are associated with a converter anyway as the persistent property provides sufficient details here.

  2. self-assigned this
    on Apr 20, 2022
  3. changed the title [-]ZoneId property converting[/-] [+]`ZoneId` property using `ZoneRegion` type hint cannot be read back[/+] on Apr 20, 2022
  4. added this to the 2.6.5 (2021.1.5) milestone on Apr 20, 2022
  5. added 2 commits that reference this issue on Apr 20, 2022
    f66384a
    be65e12
  6. added a commit that references this issue on Apr 26, 2024
    5f75eab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions