Incendo / cloud

Command framework & dispatcher for the JVM
https://cloud.incendo.org
MIT License
433 stars 54 forks source link

ClassCastException when using dynamic default value and sender type #723

Closed NonSwag closed 5 months ago

NonSwag commented 6 months ago

When executing a command that has an optional argument using a dynamic default value that accesses the sender from the context, the value is evaluated even though the sender type is incorrect and therefore results in a class cast exception if the types don't match image image