From: <no...@so...> - 2002-11-15 18:18:58
|
Bugs item #639027, was opened at 2002-11-15 10:18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=639027&group_id=44253 Category: Interactions Group: Serious Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: InteractionsException/syntax error BfRdr Initial Comment: I run the following code in DrJava (drjava-stable-20020814.jar) under MacOS X 10.2.2 on a PowerBook G4/800: import java.io.*; class IOTest{ public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader (System.in)); String response; System.out.println("Hello. What's your name?"); response = br.readLine(); System.out.println("Hello, " + response + "."); } } In the Interactions window, I run it as follows and get the initial prompt: Welcome to DrJava > java IOTest Hello. What's your name? Then I see the wristwatch icon; then I try to type some text (it doesn't seem to matter what text); the text doesn't echo, and when I hit return I get this message: edu.rice.cs.drjava.model.repl.InteractionsException: There was a syntax error in the previous input. I ran the same code on the same machine using javac in the terminal window, and it produced the expected results: Hello. What's your name? Donald Duck Hello, Donald Duck. Is there something I'm missing here? --DGK David G. Kay ka...@uc... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=639027&group_id=44253 |