Composite driver configs with more than 1 key throw ClassCastException

Description

The following code throws ClassCastException:

Error:

The culprit is this return statement:

The copyOf variant used here assumes that result contains Comparable elements, but that's not the case for Map.Entry. Therefore the method throws CCE as soon as results contains more than one element.

We didn't detect this because CompositeDriverConfigTest is not testing the CompositeDriverExecutionProfil.entrySet method.

The fix is trivial:

Environment

None

Pull Requests

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Created October 3, 2020 at 11:10 AM
Updated October 13, 2020 at 10:30 AM
Resolved October 13, 2020 at 10:30 AM