This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
On NB3.6 BufferedReader.readLine blocks and waits normally for user input. So with the standard java run-time enviroment (1.5.0). But debugging or running inside NB4.0-beta1 I got that undesired behaviour. Reproduce with this sample code: import java.io.*; public class EchoTest { public static void main (String args[]) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; while(true) { line=""; try { //nesta linha ele deveria //parar esperando //o usuario, mas no NB4 //nao para line = in.readLine(); } catch (IOException e) { System.err.println(e.getMessage()); } System.out.println(line); } } }
On NB3.6 BufferedReader.readLine blocks and waits normally for user input. So with the standard java run-time enviroment (1.5.0). But debugging or running inside NB4.0-beta1 I got that undesired behaviour. Reproduce with this sample code: import java.io.*; public class EchoTest { public static void main (String args[]) { BufferedReader in = new BufferedReader(new InputStreamReader (System.in)); String line; while(true) { line=""; try { //nest a linha ele deveria //parar esperando //o usuario, mas no NB4 //nao para line = in.readLine(); } catch (IOException e) { System.err.println(e.getMessage()); } System.out.println(line); } } }
On NB3.6 BufferedReader.readLine blocks and waits normally for user input. So with the standard java run-time enviroment (1.5.0). But debugging or running inside NB4.0-beta1 I got that undesired behaviour. Reproduce with this sample code: import java.io.*; public class EchoTest { public static void main (String args[]) { BufferedReader in = new BufferedReader(new InputStreamReader (System.in)); String line; while(true) { line=""; try { line = in.readLine(); } catch (IOException e) { System.err.println(e.getMessage()); } System.out.println(line); } } }
Seems like ant integration doesn't provide working stdio for executed apps.
An Ant limitation currently prevents System.in from working for forked apps. *** This issue has been marked as a duplicate of 47708 ***
closed