[ http://issues.apache.org/jira/browse/HARMONY-648?page=all ]
Tim Ellison closed HARMONY-648.
-------------------------------
> Can't read input from the console
> ---------------------------------
>
> Key: HARMONY-648
> URL: http://issues.apache.org/jira/browse/HARMONY-648
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP
> Reporter: Sian January
> Assigned To: Tim Ellison
> Priority: Critical
> Attachments: harmony-648.diff, Main.java, SystemTest.java, SystemTest.java
>
>
> Using the IBM VME and a version of Harmony built today (23rd June 2006), the following
simple program fails:
> import java.io.BufferedReader;
> import java.io.IOException;
> import java.io.InputStreamReader;
> public class Main {
> public static void main(String[] args) {
> BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
> try {
> String input = br.readLine ();
> System.out.println("Hello " + input);
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> }
> This fails with an IOException - Stack trace below:
> java.io.IOException
> at org.apache.harmony.luni.platform.OSFileSystem.seek(OSFileSystem.java:99)
> at java.io.FileInputStream.available(FileInputStream.java:126)
> at java.io.BufferedInputStream.available(BufferedInputStream.java:101)
> at java.io.InputStreamReader.read(InputStreamReader.java:392)
> at java.io.BufferedReader.fillbuf(BufferedReader.java:108)
> at java.io.BufferedReader.readLine(BufferedReader.java:323)
> at p.Main.main(Main.java:12)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|