Skip to content

Using Mapping#expression and Mapping#conditionalQualifiedBy(Name) should lead to compile error #3413

@filiphr

Description

@filiphr

Expected behavior

Using a combination for Mapping#expression and Mapping#conditionQualifiedBy(Name) should lead to compile error

Actual behavior

There is no compile error and the Mapping#conditionQualifiedBy(Name) is simple ignored

Steps to reproduce the problem

@Mapper
public interface MyMapper {
    @Mapping(target = "value", expression = "java(source.getValue())", conditionQualifiedByName = "condition")
    Target map(Source source);
}

This is related to #3405

MapStruct Version

1.5.5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions