Skip to content

Executors.createDefaultExecutor throws ClassCastException #55

Closed
@pnerg

Description

@pnerg

Setting the system property javascalautils.concurrent.executorprovider referring to a class implementing the ExecutorProvider will result in a ClassCastException being thrown by the Executors.createDefaultExecutor method.

The result of the ReflectionUtil.newInstance contains a ExecutorProvider and not a Executor as the resulting Try expects. There's a missing map operation that will invoke the create method

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions