beanshell icon indicating copy to clipboard operation
beanshell copied to clipboard

pasting a big chunk of multilined code in JConsole makes it freeze

Open lispercat opened this issue 5 years ago • 0 comments

Looks like I have this issue with both 2.0b5 and 2.1.8. When I open JConsole with following code:

JFrame frame = new JFrame("BeanShellConsole");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setMinimumSize(new Dimension(1500, 700));

JConsole console = new JConsole();
frame.setContentPane(console);
Interpreter interpreter = new Interpreter( console );

After, if I copy/paste a long function or multiple import statements into the console and press Enter, the console freezes. It sends concatenated lines of code to PipedInputStream which gets stuck in awaitSpace loop forever. How do you guys do copy/paste to the console?

lispercat avatar Mar 16 '20 13:03 lispercat