GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Mapping `ZonedDateTime` or `OffsetDateTime` to `LocalDateTime` · Issue #4027 · mapstruct/mapstruct Closed DescriptionExpected behaviorThis is very similar to:
However, given: record Zoned(ZonedDateTime zonedDateTime) {} record Local(LocalDateTime localDateTime) {} @Mapper interface ZonedToLocalMapper { @Mapping(target = "localDateTime", source = "zonedDateTime") Local toLocal(Zoned zoned); } I'd expect the mapper to just do The reverse fails nicely, that's correct as converting Actual behaviorhowever, we see this monstrosity localDateTime = xmlGregorianCalendarToLocalDateTime( zonedDateTimeToXmlGregorianCalendar( zonedDateTime ) ); with a lot of Steps to reproduce the problemrecord Zoned(ZonedDateTime zonedDateTime) {} record Local(LocalDateTime localDateTime) {} @Mapper interface ZonedToLocalMapper { @Mapping(target = "localDateTime", source = "zonedDateTime") Local toLocal(Zoned zoned); } and the sane for MapStruct Version1.6.3 Reacted by Bernhard Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |