Skip to content

@WithMappers does not work in procedural scheduling #1737

@adrienmaillard

Description

@adrienmaillard

Checked for duplicates

Yes - I've already checked

Is this a regression?

No - This is a new bug

Version

develop

Describe the bug

I was trying to add a record parameter to an e2e.procedural.scheduling scheduling procedure to test a new feature. I added a custom value mapper class for that new record parameter and added it with a @WithMappers annotation in the package-info.java

When trying to build e2e tests, I got an error
AllMappers.value() is defined in an inaccessible class or interface@WithMappers(BasicValueMappers.class)

Then, I removed this new record parameter and tried removing both @WithMappers annotations from the package-info.java and it compiled. This means that the value mappers for the procedure have been found somewhere else and that the annotations are not taken into account.

Reproduction

In e2e.procedural.scheduling package.info.java, remove the @WithMappers annotation and try compiling. It will compile.

Logs

System Info

Mac, Intellij

Severity

Moderate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions