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 114290 - gets /puts reversing entries at the console...
Summary: gets /puts reversing entries at the console...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 114414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-30 22:30 UTC by spanm
Modified: 2008-12-22 10:02 UTC (History)
3 users (show)

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 spanm 2007-08-30 22:30:40 UTC
When prompting for a user to enter a number, the numbers are getting reversed sporatically. I notice it during debug 
mode but also occured during normal running. the cursor is not moving to the right after a digit is entered. 
"enter number >" 10
instead of "10", "1" then "01" is displayed as digits are entered. 

code snippet:

puts myPrompt
STDOUT.flush
gets.chomp.to_f
Comment 1 Martin Krauskopf 2007-08-31 10:31:03 UTC
Yes, I can reproduce easily also when running project (on Linux). Tor if it is known issue, let me know. Otherwise I'll
explore.
Comment 2 Martin Krauskopf 2007-08-31 10:35:39 UTC
The same with:

    public static void main(String[] args) throws IOException {
        System.out.print("Enter: ");
        System.in.read();
    }

General Output Window problem. Reassigning.
Comment 3 Milos Kleint 2007-08-31 15:29:32 UTC
are you using daily builds of 6.0? could be a side effect of #107354 fix.
Comment 4 Martin Krauskopf 2007-08-31 15:34:04 UTC
> are you using daily builds of 6.0?

Own build. So yes.
Comment 5 Martin Krauskopf 2007-08-31 19:30:00 UTC
*** Issue 114414 has been marked as a duplicate of this issue. ***
Comment 6 Antonin Nebuzelsky 2007-09-03 14:24:14 UTC
Easily reproducible. Should be fixed in Beta1 -> P1.
Comment 7 Milos Kleint 2007-09-04 06:56:09 UTC
fixed in trunk. please verify, I'll commit to beta1 branch then.

Checking in ui/AbstractOutputTab.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputTab.java,v  <--  AbstractOutputTab.java
new revision: 1.18; previous revision: 1.17
done
Checking in ui/AbstractOutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v  <--  AbstractOutputPane.java
new revision: 1.46; previous revision: 1.45
done
Checking in OutputDocument.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputDocument.java,v  <--  OutputDocument.java
new revision: 1.21; previous revision: 1.20
done
Comment 8 Marian Mirilovic 2007-09-05 09:13:38 UTC
Comment from reporter :
I performed cursory test on IDE070904... looks fixed to me. Thanks!
Comment 9 Milos Kleint 2007-09-05 10:48:01 UTC
merged to beta1 branch.

Checking in ui/AbstractOutputTab.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputTab.java,v  <--  AbstractOutputTab.java
new revision: 1.17.6.1; previous revision: 1.17
done
Checking in ui/AbstractOutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v  <--  AbstractOutputPane.java
new revision: 1.45.2.1; previous revision: 1.45
done
Checking in OutputDocument.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputDocument.java,v  <--  OutputDocument.java
new revision: 1.20.2.1; previous revision: 1.20
done
ID
Comment 10 Jaromir Uhrik 2007-09-07 08:44:21 UTC
Verified in the following build: NetBeans IDE 6.0 Beta 1 (Build 200709070000)