From: SourceForge.net <no...@so...> - 2006-04-19 00:19:23
|
Bugs item #1472678, was opened at 2006-04-18 17:19 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=1472678&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: 4: Serious Status: Open Resolution: None Priority: 5 Submitted By: hperkins (hperkins) Assigned to: Nobody/Anonymous (nobody) Summary: strange traceback in interactions window Initial Comment: In the most recent beta (windows xp 20060407, but 20060410-2202 in the help window), exceptions thrown in the interactions window are producing an incomplete traceback followed by extraneous details that didn't used to be there. I've seen several examples, but I think they all can be distilled to something like the following. Compile the following class: public class TestThrow { private int n; private void check(int k) { if (k < 0 || k >= n) { throw new IndexOutOfBoundsException(); } } public void doit(int val) { n = 5; check(val); } } Then create an instance of thisin the interactions window called, say, t, and enter t.doit(17). That should produce a traceback showing that the exception was thrown in check, which was called by doit. Instead, the following appears. Exception in thread "interpret thread: t.doit(17)" java.lang.NullPointerException at edu.rice.cs.drjava.model.repl.InteractionsDocument.appendExceptionResult(InteractionsDocument.java:320) at edu.rice.cs.drjava.model.repl.InteractionsModel.replThrewException(InteractionsModel.java:489) at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forExceptionResult(MainJVM.java:840) at edu.rice.cs.drjava.model.repl.newjvm.ExceptionResult.apply(ExceptionResult.java:88) at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.interpretResult(MainJVM.java:249) 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:308) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1472678&group_id=44253 |