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.

Bug 102079 - Unexpected output: System.out.print & in.readLine
Summary: Unexpected output: System.out.print & in.readLine
Status: RESOLVED DUPLICATE of bug 56341
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 04:05 UTC by chenfeng
Modified: 2008-12-22 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chenfeng 2007-04-22 04:05:28 UTC
Hi! I hope I am at the right place. I found a (minor) problem with how the IDE
captures console I/O. Assuming "in" is a BufferedReader initialized with "new
BufferedReader(new InputStreamReader(Syste.in))", when I try to do this:
System.out.print("Enter some text: "); String s = in.readLine(); the IDE does
not display "Enter some text: " hereinafter called instruction. What happens is
that the the IDE first asks for the user input before it displays the
instruction. The workaround is to use System.out.println in displaying the
instruction. However, what the instructor wants is the first one. To satisfy the
instructor, the user must first open a shell session and perform a "java
ACompiledClass". This is a minor problem worhy of priority P5 but the priority
combobox wont let me choose P5.
Comment 1 novakm 2007-07-26 14:06:26 UTC
Reassigning to core - output for evaluation.
Comment 2 Milos Kleint 2007-08-01 12:48:10 UTC
duplicate of #56341. it's an issue with ant integration

*** This issue has been marked as a duplicate of 56341 ***