Bugs item #954027, was opened at 2004-05-14 10:09
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=954027&group_id=44253
Category: Interactions
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Patrick Kruse (pakruse)
Assigned to: Nobody/Anonymous (nobody)
Summary: Holding Down Return Throws Exception
Initial Comment:
In the interactions pane, holding down the return key
throws an exception. The window that appears says that
a DocumentAdapterException has been thrown. We tested
it both with and without the preprocessor and it throws
the exception regardless.
We're using the 1.5.0 beta runtime environment and
running on RedHat.
Printing return characters doesn't appear to throw this
error, just holding the return key for a few seconds in
the interactions pane.
Stack trace:
edu.rice.cs.util.UnexpectedException:
edu.rice.cs.util.text.DocumentAdapterException:
javax.swing.text.BadLocationException: Length must be
positive
at
edu.rice.cs.drjava.model.repl.ConsoleDocument.getCurrentInput(ConsoleDocument.java:361)
at
edu.rice.cs.drjava.model.repl.InteractionsDocument.getCurrentInteraction(InteractionsDocument.java:476)
at
edu.rice.cs.drjava.model.repl.InteractionsModel.interpretCurrentInteraction(InteractionsModel.java:202)
at
edu.rice.cs.drjava.ui.InteractionsController$8$1.construct(InteractionsController.java:403)
at
edu.rice.cs.util.swing.SwingWorker$2.run(SwingWorker.java:157)
at java.lang.Thread.run(Thread.java:566)
Caused by:
edu.rice.cs.util.text.DocumentAdapterException:
javax.swing.text.BadLocationException: Length must be
positive
at
edu.rice.cs.util.text.SwingDocumentAdapter.getDocText(SwingDocumentAdapter.java:220)
at
edu.rice.cs.drjava.model.repl.ConsoleDocument.getDocText(ConsoleDocument.java:349)
at
edu.rice.cs.drjava.model.repl.ConsoleDocument.getCurrentInput(ConsoleDocument.java:358)
at
edu.rice.cs.drjava.model.repl.InteractionsDocument.getCurrentInteraction(InteractionsDocument.java:476)
at
edu.rice.cs.drjava.model.repl.InteractionsModel.interpretCurrentInteraction(InteractionsModel.java:202)
at
edu.rice.cs.drjava.ui.InteractionsController$8$1.construct(InteractionsController.java:403)
at
edu.rice.cs.util.swing.SwingWorker$2.run(SwingWorker.java:157)
at java.lang.Thread.run(Thread.java:566)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=954027&group_id=44253
|