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 152090 - Wrong output during Java program running
Summary: Wrong output during Java program running
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 14:34 UTC by Sergey Grinev
Modified: 2009-02-19 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output window error (20.40 KB, image/jpeg)
2008-11-01 14:35 UTC, Sergey Grinev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Grinev 2008-11-01 14:34:18 UTC
1. Create empty Java Application
2. Add next code to the Main method body:

        try {
            System.err.print("hi");
            System.in.read();
            System.out.println("out");
        } catch (IOException ex) {
        }

3. Run this program

Unexpected behavior:
- string hi is typed 2 times: one time in red color and one time in black
Comment 1 Sergey Grinev 2008-11-01 14:35:02 UTC
Created attachment 73045 [details]
output window error
Comment 2 Tomas Zezula 2008-11-03 13:13:29 UTC
It may be a duplicate of issue #147781

Comment 3 Jesse Glick 2008-11-03 16:44:10 UTC
Reproducible in a recent dev build. Even simpler:

public class Test152090 {
    public static void main(String[] args) {
        System.err.print("hi");
    }
}
Comment 4 t_h 2008-11-04 13:53:39 UTC
1249620e775d
Comment 5 Quality Engineering 2008-11-05 04:35:09 UTC
Integrated into 'main-golden', will be available in build *200811050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1249620e775d
User: Tomas Holy <t_h@netbeans.org>
Log: #152090: Wrong output during Java program running