Skip to content

missing throws clauses when mapping enum with checked exceptions #3110

@ldicarlo

Description

@ldicarlo

Expected behavior

When using

  @ValueMapping(target = THROW_EXCEPTION, source = NULL)
  @EnumMapping(unexpectedValueMappingException = CheckedException.class)
  EnumOut map(EnumIn enumIn) throws CheckedException;

I expect the generated method to contain throws CheckedException;

Actual behavior

The generated method does not contain throws CheckedException;

Steps to reproduce the problem

I created a minimal case here: https://github.com/ldicarlo/mapstruct-checked-exceptions

MapStruct Version

1.5.3.Final

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions