If the user enter some text like :
id!=202;
Jline will fail with an exception:
java.lang.IllegalArgumentException: !=202;: event not found
at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:675)
at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:550)
at jline.console.ConsoleReader.accept(ConsoleReader.java:1855)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2423)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2098)
Please help ! JLine becomes unusable !
Just call the setExpandEvents() method after instantiation:
consoleReader = new ConsoleReader(Globals.APP_NAME, System.in, System.out, null);
consoleReader.setExpandEvents(false);