Skip to content

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

Description

@Khalil-Bouzekri

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions