BufferedReader on stdin causes java.lang.Error

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P1
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • None
    • sparc
    • solaris_2.6

      See attached test case
      dana.burns@East 2001-01-04

      Oops, bugtraq barfed on the attachment so here it is:

      import java.io.*;
      public class Test {
        public static void main(String args[]) {
          try {
            BufferedReader br =
      new BufferedReader(new InputStreamReader(System.in), 1);
            String line = r.readLine();
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
      }

      dana.burns@East 2001-01-04

            Assignee:
            Unassigned
            Reporter:
            Dana Burns (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: