Update mapstruct monorepo to v1.6.3 #2886
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.2.0.Final
->1.6.3
1.2.0.Final
->1.6.3
Release Notes
mapstruct/mapstruct (org.mapstruct:mapstruct-processor)
v1.6.3
Compare Source
Bugs
RETURN_DEFAULT
strategy (#3747)java.time.LocalDate
when mapping sourceLocalDateTime
to targetLocalDate
(#3732)Documentation
v1.6.2
Compare Source
Bugs
v1.6.1
Compare Source
Enhancements
LinkedHashSet
andLinkedHashMap
new factory method with known capacity when on Java 19 or later (#3113)Bugs
SubclassMapping
: generic vs raw types (#3668)InheritInverseConfiguration
with nested target properties and reversingtarget = "."
(#3670)@AfterMapping
methods are called twice when using target with builder (#3678)@AfterMapping
method with Builder and TargetObject (#3703)Behaviour change
Inverse Inheritance Strategy not working for ignored mappings only with target
Prior to this fix
@Mapping(target = "myProperty", ignore = true)
was being ignored when using@InheritInverseConfiguration
.e.g.
In the example above prior 1.6.1 the
Model toModel(Entity entity)
was going to map theid
property. In order to keep that behavior you'll need to explicitly do the mapping for it.v1.6.0
Compare Source
Previous Release Notes
v1.5.5.Final
Compare Source
Enhancements
Bugs
BeanMappingOptions#ignoreUnmappedSourceProperties
are not inherited via@InheritConfiguration
(#3248) - Regression from 1.5.3Documentation
v1.5.4.Final
Compare Source
Enhancements
@ApplicationScoped
is missing (#2950)Bugs
throws
clauses when mapping enum with checked exceptions (#3110)Mapping
annotations for nested objects (worked with 1.5.2) (#3057)BeanMapping#mappingControl
(#3040)Documentation
<THROW_EXCEPTION>
in the reference guide (#3112)v1.5.3.Final
Compare Source
Bugs
@AfterMapping
does not consider@MappingTarget
properly in 1.5 (#3036)@AfterMapping
is not called (#2955)SubclassMapping
doesn't honourmappingControl
(#3018)BigDecimal
to primitivedouble
wrong with 1.5.2 (#2913)SubclassMapping
stackoverflow exception (#2825)Optional
wrapping pattern broken in 1.5.2.Final (#2925)@Conditional
and collection (#2937)try-catch
block (#2839)@TargetType
as a parameter for@Condition
causes NPE during compiling (#2882)Documentation
BeanMapping#ignoreByDefault
(#2929)Build
v1.5.2.Final
Compare Source
Enhancements
Bugs
SubclassExhaustiveStrategy.RUNTIME_EXCEPTION
option does not work if the superclass has a non-empty constructor #2891Build
v1.5.1.Final
Compare Source
Bugs
NullPointerException
when reporting errors for non Mappers (#2867)v1.5.0.Final
Compare Source
Bugs
@Condition
on a presence check for a generic wrapper (#2795)conditionExpression
andexpression
are used together (#2794)@BeforeMapping
on aused
mapper (#2807)Documentation
mapstruct-1.5.0.Final-dist.tar.gz
Build
Previous Release Notes
v1.4.2.Final
Compare Source
Enhancement
Mapping#qualifiedByName
andMapping#qualifier
for collection mappings (#2324, #2346)Bugs
Optional<T>
mapping (#2295)@InheritInverseConfiguration
and@Mapping(target:"bean.childProperty", ignore=true)
do not play together (#2278)@InheritConfiguration
defines a mapping for a sub-field (#2318)Documentation
@Default
annotation as of 1.4.X (#2258)@MapperConfig
annotation in documentation (#2293)v1.4.1.Final
Compare Source
Bugs
@InheritConfiguration
is broken when using multiple source parameters of the same type (#2221)@Mapping
withdefaultValue
and method argument where is missing source does nothing (#2220)-Djps.track.ap.dependencies=false
. More info about this is in IDEA-250718@Mapping
needs to define source parameter withdefaultValue
if you have two arguments in 1.4.0.Final (#2214)v1.4.0.Final
Compare Source
For full upgrade instructions please read the release notes for the previous 1.4 releases:
Bugs
v1.3.1.Final
Compare Source
Enhancements
@AfterMapping
methods with non unique parameters (#1457) - Stricter matching for lifecycle methods / non-unique parametersIn case a lifecycle method has multiple matching parameters (e. g. same type)
all parameter names must match exactly with the ones from the mapping method,
otherwise the lifecycle method will not be used and a warning will be shown.
Builder#disableBuilder
(#1661)Bug fixes
ReportingPolicy.ERROR
on Unmapped Source Properties (#1772)EnumSet
(#1797)nullValuePropertyMappingStrategy
when inherited (#1790)@Context
not yielding Impl classes in Java11 (#1904)builderCreationMethod
in custom builder provider causesNullPointerException
(#1801)Documentation
NullValueMappingStrategy.RETURN_DEFAULT
(#1784)v1.3.0.Final
Compare Source
This contains only changes between 1.3.0.Beta2 and 1.3.0.Final. To read the changes from the betas go to 1.3.0.Beta1 and 1.3.0.Beta2
Enhancements
CollectionMappingStrategy#ADDER_PREFERRED
NullValuePropertyMapping
strategy not implemented fully (#1685)NullValuePropertyMappingStrategy.SET_TO_DEFAULT
(#1699)AdderWrapper
/StreamAdderWrapper
to use local variable (#1700)Bug fixes
unmappedSourcePolicy
may lead to false positives (#1648)NullValuePropertyMappingStrategy
was not implemented completely (#1685)build()
on the@MappingTarget
when a Builder is available (#1681)Stream
toList
and using@AfterMapping
on result (#1707)Documentation
Build
Configuration
📅 Schedule: Branch creation - "before 6am" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.