Avoid JDK functional interfaces in ManagedTypeHelper

Description

Functional interfaces like BiConsumer and Consumer being used in ManagedTypeHelper to prevent type pollution might actually re-trigger the same issue, as generics will trigger a check for type compatibility at runtime.

The simple workaround is to create custom functional interfaces which do not use generics; we can actually benefit from generics for the parameters but we need to stricly avoid them on the set of interfaces which ManagedTypeHelper was designed to mitigate.

Activity

Show:
Fixed

Details

Assignee

Reporter

Labels

Fix versions

Priority

Created December 3, 2022 at 11:09 PM
Updated December 7, 2022 at 2:24 PM
Resolved December 4, 2022 at 11:45 AM