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

import is not generated for sub-packages of java.lang #1227

Closed
brabenetz opened this Issue Jun 20, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@brabenetz

brabenetz commented Jun 20, 2017

I tried to map java.lang.management.ThreadInfo:

void map(final ThreadInfo threadInfoSrc, @MappingTarget final ThreadDto threadDto);

even @Mapper(imports = ThreadInfo.class didn't work.

The generated class didn't include the import statement.
I use MapStruct 1.1.0.Final with java8

@filiphr filiphr added the bug label Jun 20, 2017

@filiphr filiphr added this to the 1.2.0.CR1 milestone Jun 20, 2017

@filiphr

This comment has been minimized.

Show comment
Hide comment
@filiphr

filiphr Jun 20, 2017

Member

There is an explicit ignore for all classes that start with java.lang. It seems we need to ignore only classes that are in the java.lang package. The problem is here in the GeneratedType.

Member

filiphr commented Jun 20, 2017

There is an explicit ignore for all classes that start with java.lang. It seems we need to ignore only classes that are in the java.lang package. The problem is here in the GeneratedType.

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