From: SourceForge.net <no...@so...> - 2004-08-12 15:57:11
|
Bugs item #1008034, was opened at 2004-08-12 10:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1008034&group_id=44253 Category: Interactions Group: Crashes Status: Open Resolution: None Priority: 6 Submitted By: Patrick Kruse (pakruse) Assigned to: Nobody/Anonymous (nobody) Summary: Editing failed unexpectedly Initial Comment: While typing in the interaction: public class A { public static void m(String ... args) { } I had my cursor on the last brace after typing this in, then moved back to the line between the two braces of the method to add text for the method. After typing again the method was as follows: > public class A { public static void m(String ... args) { for(String s : args) } Upon pressing enter at the end of the line with the foreach statement, DrJava crashed, printing out this stack trace, but not bringing up one of our Exception windows: Exception in thread "interpret thread: public class A { public static void m(String ... args) { for(String s: args) }" java.lang.IllegalArgumentException: startRow is beyond the end of the string at edu.rice.cs.util.StringOps.getOffsetAndLength(StringOps.java:156) at edu.rice.cs.drjava.model.repl.InteractionsModel.replReturnedSyntaxError(InteractionsModel.java:716) at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forSyntaxErrorResult(MainJVM.java:965) at edu.rice.cs.drjava.model.repl.newjvm.SyntaxErrorResult.apply(SyntaxErrorResult.java:122) at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.interpretResult(MainJVM.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at edu.rice.cs.drjava.model.repl.newjvm.MainJVM_Stub.interpretResult(Unknown Source) at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM$4.run(InterpreterJVM.java:325) I am running the most recent version off of CVS, under Windows XP. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1008034&group_id=44253 |