Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration Java 8 -> Java 11: mapper: java.lang.NullPointerException #204

Open
Khalil-Bouzekri opened this issue Dec 20, 2018 · 2 comments
Open

Comments

@Khalil-Bouzekri
Copy link

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);

errors

@mgamonnet
Copy link

+1

@frank-rahn
Copy link

frank-rahn commented Jan 2, 2021

+1

Only in Eclipse (4.16.0). With Maven (3.6.3), it works for me.

https://www.frank-rahn.de/java-bean-mapper/#selma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants