1191 Commits

Author SHA1 Message Date
Sjaak Derksen
743361ca45
#1650 cannot find symbol nested mapping mappingtarget (#1671)
* #1650 reproducer

* #1650 fix cannot-find-symbol

* #1650 reproducer, extended
2018-12-20 21:12:37 +01:00
Filip Hrisafov
8edc6f82aa
Add Arne to copyright.txt 2018-12-11 18:36:09 +01:00
Arne Seime
e2915c864e #1665 Box any primitives before attempting type comparison for adder accessors 2018-12-11 18:33:50 +01:00
Taras Mychaskiw
780fd73928 #1656 Support for mapping between String and java.time Duration, Period, Instant 2018-12-08 20:25:42 +01:00
Filip Hrisafov
d1fe65dbad #1660 Consider only public not static accessor methods as possible getter, setter, presence check and / or adder methods 2018-12-01 21:26:55 +01:00
Filip Hrisafov
9a43b210d3 Add since tag to new API elements 2018-11-24 02:07:31 +01:00
Filip Hrisafov
a3ba57c372
#1648 Source properties defined in Mapping should not be reported as unmapped 2018-11-18 10:11:11 +01:00
Sjaak Derksen
b651ad34b5
#1649 Improvement: builder for Mapper/Decorator/GeneratedType 2018-11-18 08:44:57 +01:00
Filip Hrisafov
2977c2e614
#1645 Use Repeatable Mapping annotation in the reference documentation 2018-11-11 13:57:42 +01:00
Filip Hrisafov
ced7f3b024 [maven-release-plugin] prepare for next development iteration 2018-11-11 09:19:06 +01:00
Filip Hrisafov
3f2c1cee55 [maven-release-plugin] prepare release 1.3.0.Beta2 1.3.0.Beta2 2018-11-11 09:19:05 +01:00
Sjaak Derksen
cf668bea77
#1576 Delay determining whether a Type needs to be imported & java.time cleanup (#1642) 2018-11-06 07:36:09 +00:00
Filip Hrisafov
3ff4ebd60a #1640 Add init method with MapStructProcessingEnvironment to the BuilderProvider for initializing the Elements and Types 2018-11-03 15:48:16 +01:00
Sjaak Derksen
1266796921
#1504 adding position hints for ambiguous mapping methods (#1639) 2018-11-03 08:57:42 +00:00
Filip Hrisafov
60611d94cf Add more info for the FreeBuilder support in the documentation
* Add the usage of the FreeBuilderAccessorNamingStrategy when FreeBuilder is present
* And the fact that the JavaBean convention should be followed when using FreeBuilder
2018-11-03 09:03:22 +01:00
Filip Hrisafov
a0ae8750a1 Adapt japicmp-maven-plugin to not consider adding a new default method to an interface as incompatible
According to https://docs.oracle.com/javase/specs/jls/se8/html/jls-13.html#jls-13.5.3
Adding an abstract (default) method to an interface does not break compatibility with pre-existing binaries.
2018-11-03 08:55:10 +01:00
Filip Hrisafov
104ebf88da Add a FreeBuilder specific AccessNamingStrategy
The builder created by FreeBuilder have different fluent methods created.
When using FreeBuilder one needs to use the JavaBean convention for the getters (as otherwise MapStruct won't recognize them),
this leads to FreeBuilder creating fluent setters that start with set (so we can safely ignore all other fluent setters)
2018-11-03 08:55:10 +01:00
Filip Hrisafov
6f19d56155 #1566, #1253 Add support for initializing the AccessorNamingStrategy with Elements and Types and use Types for determining fluent setters
* This allows using generic builders
2018-11-03 08:55:10 +01:00
Sjaak Derksen
e69647f756
#5 controlling lossy conversions (also solving #1504 partially and #1458) 2018-11-02 07:56:51 +00:00
Filip Hrisafov
ec413118d6
Update build with latest dependencies and Java 8 baseline: (#1636)
* Do not use maven-processor-plugin and use the maven-compiler-plugin annotationProcessors instead
* Update NoPackageCyclesRule and exclude tests
* Update checkstyle to 8.14 and remove FIleContentsHolder module and move SuppressionCommentFilter to the TreeWalker
* Update assertj to 3.11.1 and replace usage of RuntimeIOException (from AssertJ) with UncheckedIOException (from java 8)
* Add how to import MapStruct into IntelliJ and Eclipse into the readme
2018-10-28 21:39:35 +01:00
Filip Hrisafov
de13634cce
#1478 Use source property name for the adder iterator 2018-10-28 14:55:41 +01:00
Filip Hrisafov
2acbe0f5e8
#1633 Add support for an alternative line in the diagnostics report
* This should be used as a last resort when the compilers report the diagnostic on a wrong line
* The NullValuePropertyMappingTest uses repeatable annotations that reports errors on wrong lines in javac JDK-8042710
2018-10-28 08:01:44 +01:00
Sjaak Derksen
288813fc3c
#1306 Add new NullValuePropertyMappingStrategy which leaves @MappingTarget untouched (#1618) 2018-10-25 22:14:26 +01:00
dgruntz
cfe0f6250c Renames MAPPER field to INSTANCE (#1632) 2018-10-25 18:26:39 +01:00
Sjaak Derksen
a09d980773
#1593 additional testcase to test multiple source arguments icw @MappingConfig (#1630) 2018-10-20 11:21:13 +01:00
Florian Tavares
71e9bd3699 #1301 code improvements / adaptations after language-level upgrade 2018-10-19 20:36:07 +01:00
Florian Tavares
d81d3e46a4 #1301 Use Java 8 as baseline for MapStruct
* Move classes from mapstruct-common into mapstruct
* Use Java 8 @Repeatable for @Mappings and @ValueMappings in the mapstruct module
* Add relocation for mapstruct-jdk8 to mapstruct
* Use of 1.8 source and target versions from parent POM
* Update documentation to match
* Update versions of some maven plugin crashing build on Java 8
* Drop JDK 6 & 7 support in integration tests
* Remove mapstruct-common module (it was never deployed to Central)
2018-10-15 22:16:33 +02:00
Filip Hrisafov
20bff96e99
#1591 Update reference guide with implicit conversion between java.time.LocaDate and java.sql.Date 2018-10-15 21:46:23 +02:00
Sivaraman Viswanathan
9f8c0749d1 #1591 Add support for mapping java.time.LocalDate to java.sql.Date 2018-10-15 21:41:53 +02:00
Filip Hrisafov
6d5243dc2f #1551 Use javax.annotation.processing.Generated if it is available and source version is at least RELEASE_9 2018-10-13 19:07:24 +02:00
Filip Hrisafov
0e0fd313e5 #1594 Add test case to show that it has been fixed 2018-10-13 10:27:49 +02:00
Filip Hrisafov
f17ddcfb18 #1608 Make sure that property names for fluent setters starting with is are handled properly (#1620) 2018-10-13 07:54:09 +01:00
Sjaak Derksen
fa1ab4b781
Update copyright.txt 2018-10-13 08:46:16 +02:00
Filip Hrisafov
ef82ebfbca #1595 Update reference guide with implicit conversion between java.time.Instant and java.util.Date 2018-10-13 08:17:20 +02:00
neoXfire
6b3cbaae9e #1595 Support for conversion between java.time.Instant and java.util.Date (#1622) 2018-10-12 20:10:25 +01:00
Sjaak Derksen
4f539d2a08
#1616 Adding an issue template to streamline answers 2018-09-26 20:48:54 +02:00
Sjaak Derksen
459f57e805
#1571 apply nullvaluecheck strategy on all relevant levels 2018-09-24 23:35:35 +02:00
Filip Hrisafov
dcddba6853
Add Sebastian to copyright.txt 2018-09-24 22:26:43 +02:00
Sebastian
30c2dadec7 #1561 add support for adders in combination with streams
- Extended Type#getAlternativeTargetAccessors to recognize stream read
  accessors for which no corresponding setter exists
  (there is only an add method)
- Extended SourceRHS#getSourceTypeForMatching to return the
  correct source type for streams too
- Add StreamAdderWrapper to map Stream -> Adder
- Extended PropertyMapping$PropertyMappingBuilder#assignToPlainViaAdder
  to return StreamAdderWrapper if source type is stream
2018-09-24 22:23:34 +02:00
Sjaak Derksen
5a4990c474
#1456 apply source presence tracking recursively (in nested source) 2018-09-22 14:06:53 +02:00
Sjaak Derksen
13aa947421
#1569 Reproducer missing Immubable buildertype import (#1605) 2018-09-12 16:26:09 +02:00
Sjaak Derksen
3da85bc178
#1596 Missing builder type import (#1602) 2018-09-02 22:19:21 +02:00
Sjaak Derksen
bd2c206f7f
#1590 ArrayList missing as import for NVMS.RETURN_DEFAULT (#1598) 2018-08-29 21:11:22 +02:00
Filip Hrisafov
ded8d88c73
#1578 Rename isBuilderSetter to isFluentSetter in the DefaultAccessorNamingStrategy 2018-08-18 21:58:22 +02:00
Filip Hrisafov
04576de1d1
#1552 Stop processing source parameters for unprocessed defined properties when a mapping is found 2018-08-18 19:58:02 +02:00
Sjaak Derksen
10f855fa9e
#1532 using fields and constructor fragments optimizing DataTypeFactory usage 2018-08-14 23:53:41 +02:00
Sjaak Derksen
5c2e049478
#1558 Annotations ElementType.TYPE_USE not handled correctly 2018-08-14 06:56:59 +02:00
Filip Hrisafov
e056311c1a
#1569 Make sure that converting Java 8 LocalDate to Date generates correct code
* ZoneOffset instead of ZoneId needs to be imported when performing a conversion from LocalDate to Date
2018-08-13 21:21:04 +02:00
Filip Hrisafov
0d3ec9042d
Add Saheb to copyright.txt 2018-08-11 22:21:56 +02:00
Saheb Preet Singh
08067b7f17 #1524 replaced java.beans.Introspector with a custom IntrospectorUtils class to avoid java.desktop module 2018-08-11 22:19:21 +02:00