Migration Java 8 -> Java 11: mapper: java.lang.NullPointerException
Khalil-Bouzekri opened this issue · 2 comments
Hi,
I just migrated to Java 11 (OpenJDK) from Java 1.8 (Oracle), and I get compilation errors on mapper class methods such as:
Error while searching builder for field curitems on InOutType{in=com.xyz.service.model.models.PagingInfos, out=com.xyz.SWPagingAttributes, outPutAsParam=false} mapper: java.lang.NullPointerException
Strangely, this error only occur on certain mapper interface methods, not all of them (actually not all mapper interfaces as well, some do not have any compilation error).
I also migrated my IDE from Spring Tool Suite 3.9.6 to Spring Tool Suite 4.0.2 in case it might be related.
It is annoying, but actually I can run my application, and the methods with compilation errors work...
@Mapper(withIgnoreMissing = IgnoreMissing.ALL, withCustom = UtilMapper.class, withIoC = IoC.SPRING)
public interface ApplicationMapper {
SWApplicationList asSwaggerApplicationList(ApplicationList applicationList);
SWTokenList asSwaggerTokenList(List<TokenEntity> list);
+1
+1
Only in Eclipse (4.16.0). With Maven (3.6.3), it works for me.