You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
miguelaferreira
changed the title
Cannot call PicocliRunner.execute(Class<?>, ApplicationContext, String...) due to type mismatch
Cannot call PicocliRunner.execute(Class<?>, ApplicationContext, String...) due to type mismatch
Jan 9, 2025
miguelaferreira
changed the title
Cannot call PicocliRunner.execute(Class<?>, ApplicationContext, String...) due to type mismatch
Call to PicocliRunner.execute(Class<?>, ApplicationContext, String...) does not compile
Jan 9, 2025
Expected Behavior
That a call to
PicocliRunner.execute(Class<?>, ApplicationContext, String...)
with anyClass
instance would compile.Actual Behaviour
The compiler complaints that the
Class
instance I'm providing to the method does not comply with the method signature.Steps To Reproduce
Runnable
norCallable
. (This is how Picocli recommends making subcommands required.)PicocliRunner.execute(Class<?>, ApplicationContext, String...)
with the command class as the first argument to the method.Environment Information
Example Application
No response
Version
4.7.3
The text was updated successfully, but these errors were encountered: