Bugs item #681547, was opened at 2003-02-06 03:19
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=681547&group_id=44253
Category: Interactions
Group: Makes DrJ unstable
Status: Open
Resolution: None
Priority: 8
Submitted By: Peter Centgraf (centgraf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Interactions and Comments
Initial Comment:
Type a comment into the interactions pane, like so:
/* stuff and junk */
Hit enter. Nothing appears to happen, except that the cursor is now at position 4. Hit enter again -> position 6. Keep hitting enter until it tries to go to position > amount of text in the current interaction. Look in the Console tab for this message:
ava.lang.IllegalArgumentException: bad position: 25
at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1120)
at edu.rice.cs.drjava.ui.InteractionsPane$CaretUpdateListener.insertUpdate(InteractionsPane.java:74)
at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:175)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:537)
at edu.rice.cs.drjava.model.repl.AbstractInteractionsDocument.insertString(AbstractInteractionsDocument.java:176)
at edu.rice.cs.drjava.model.DefaultGlobalModel._docAppend(DefaultGlobalModel.java:916)
at edu.rice.cs.drjava.model.DefaultGlobalModel.interpretCurrentInteraction(DefaultGlobalModel.java:783)
at edu.rice.cs.drjava.model.repl.DefaultInteractionsDocument.interpretCurrentInteraction(DefaultInteractionsDocument.java:68)
at edu.rice.cs.drjava.ui.InteractionsPane$2.construct(InteractionsPane.java:95)
at edu.rice.cs.util.swing.SwingWorker$2.run(SwingWorker.java:150)
at java.lang.Thread.run(Thread.java:491)
Reset the interactions pane. Try to quit DrJava. Get this message:
java.lang.IllegalStateException: tried to quit when no slave running and startup not in progress
at edu.rice.cs.util.newjvm.AbstractMasterJVM.quitSlave(AbstractMasterJVM.java:254)
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.killInterpreter(MainJVM.java:291)
at edu.rice.cs.drjava.model.DefaultGlobalModel.resetInteractions(DefaultGlobalModel.java:731)
at edu.rice.cs.drjava.ui.MainFrame$29.construct(MainFrame.java:528)
at edu.rice.cs.util.swing.SwingWorker$2.run(SwingWorker.java:150)
at java.lang.Thread.run(Thread.java:491)
Weep.
It also occurs with "//" comments. I can reproduce the problem very quickly with just "//" + Enter + Enter. Maybe it happens with anything that DynamicJava thinks is an empty statement. The error on quit is probably a side effect of the JVM throwing an exception and the Interactions pane dying ungracefully.
In case you didn't notice, THIS IS REALLY BAD!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=681547&group_id=44253
|