Skip to content

Inspection with "Unmapped target properties: ...", when fields from internal class are mapped with "." to the target #285

Open

Description

@slPerryRhodan

The inspection of the sample code is not working, even though mapstruct generates the expected code, where all fields from internalClass are mapped.

   @Mapping(target = ".", source = "internalClass")
   TargetClass mapToTargetClass(MainClass mainClass);

But the plugin marks all fields from internalClass in the target class TargetClass as unmapped at the method mapToTargetClass.

Used plugin version 1.10.0, but also not working in earlier version.

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