Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 9720 - Console: ordering of stdout and stderr output is non-deterministic
Summary: Console: ordering of stdout and stderr output is non-deterministic
Status: RESOLVED DUPLICATE of bug 6036
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-13 13:14 EST by Andre Weinand CLA
Modified: 2002-02-26 15:46 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Weinand CLA 2002-02-13 13:14:41 EST
Running the following program within Eclipse shows that the ordering of output 
sent to stdout and stderr is not deterministic. If the program is run outside 
of Eclipse the order is correct.
This is a serious problem for programs like 'javadoc' which report the location 
of a problem via stdout and the problem itself via stderr. With the Eclipse 
console javadoc's output is impossible to interpret.

public class Writer {

	public static void main(String[] args) {
		for (int i= 0; i < 100; i++) {
			System.out.println("stdout: " + i);
			System.out.flush();
			
			System.err.println("stderr: " + i);
			System.err.flush();
		}
	}
}
Comment 1 Darin Wright CLA 2002-02-26 15:46:04 EST

*** This bug has been marked as a duplicate of 6036 ***