Skip to content

Commit 26e7595

Browse files
Oondanomalaremkop
authored andcommitted
No ReflectiveOperationException in Java 5-6
Great
1 parent fc74942 commit 26e7595

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/picocli/CommandLine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17992,7 +17992,7 @@ static boolean calcIsJansiConsoleInstalled() {
1799217992
}
1799317993
try {
1799417994
return (Boolean) ansiConsole.getDeclaredMethod("isInstalled").invoke(null);
17995-
} catch (ReflectiveOperationException e) {
17995+
} catch (Exception e) {
1799617996
// isInstalled was "only" added in 2.1.0, try to support older jansi
1799717997
Field out = ansiConsole.getField("out");
1799817998
return out.get(null) == System.out;

0 commit comments

Comments
 (0)