1 parent fc74942 commit 26e7595Copy full SHA for 26e7595
1 file changed
src/main/java/picocli/CommandLine.java
@@ -17992,7 +17992,7 @@ static boolean calcIsJansiConsoleInstalled() {
17992
}
17993
try {
17994
return (Boolean) ansiConsole.getDeclaredMethod("isInstalled").invoke(null);
17995
- } catch (ReflectiveOperationException e) {
+ } catch (Exception e) {
17996
// isInstalled was "only" added in 2.1.0, try to support older jansi
17997
Field out = ansiConsole.getField("out");
17998
return out.get(null) == System.out;
0 commit comments