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 — Ambiguous mapping methods when upgrading to Mapstruct 1.5.0.RC1 · Issue #2840 · mapstruct/mapstruct Closed Labels Milestone DescriptionWhen upgrading from Mapstruct 1.4.2 to 1.5.0.RC1 I get Ambiguous mapping methods error. Given the following MappingConfiguration I want to make use of the support of the new Jakarta annotations. @MapperConfig( componentModel = "jakarta", unmappedTargetPolicy = ReportingPolicy.ERROR, injectionStrategy = InjectionStrategy.CONSTRUCTOR, nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE) public class MicronautMappingConfig {} The following mapper maps @Mapper(config = MicronautMappingConfig.class) public interface NumberousMapper { NumberDto toNumberDto(Short shortValue, Integer intValue); default int toInt(Number number) { return number.intValue(); } default short toShort(Number number) { return number.shortValue(); } } class NumberDto { private int intValue; private short shortValue; public int getIntValue() { return intValue; } public void setIntValue(int intValue) { this.intValue = intValue; } public short getShortValue() { return shortValue; } public void setShortValue(short shortValue) { this.shortValue = shortValue; } } With Mapstruct 1.5.0.RC1 I get the following error 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. |