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 126561 - Output Window displays a newline when it shouldn't
Summary: Output Window displays a newline when it shouldn't
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 07:18 UTC by _ gtzabari
Modified: 2008-02-27 16:48 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 _ gtzabari 2008-02-03 07:18:47 UTC
dev build 200802021203
JDK 6 update N build 11

- This problem is reproducible 100% of the time.
- The bug only occurs when the application is being debugged so it is possibly a race condition.

Test program:

public class Test
{
  public static void main(String[] args)
  {
    System.out.print("line1"); // breakpoint here
    System.out.println("line2");
  }
}

1) Start the debugger with a breakpoint set on "line1".
2) Step over both lines
3) The output window is supposed to display "line1line2" but instead it displays "line1" <new line> "line2"
Comment 1 Milos Kleint 2008-02-04 12:46:54 UTC
most probably an issue in the way ant processes output
Comment 2 Jesse Glick 2008-02-27 16:48:54 UTC
Yup, since Ant can only produce entire lines of output at a time, NetBeans will insert a line break if an incomplete
line has been printed but no further output has arrived within some time period, I think currently 300ms.