|
From: SourceForge.net <no...@so...> - 2010-06-06 15:32:31
|
Bugs item #3012083, was opened at 2010-06-06 11:32 Message generated for change (Tracker Item Submitted) made by gparadis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3012083&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Greg (gparadis) Assigned to: Nobody/Anonymous (nobody) Summary: dr. java error when writing a class Initial Comment: I was writing the class below in Dr. Java, and I think that the cursor was somewhere between the bottom two curly brackets, and I pressed enter, and it caused the Dr. Java error shown below the class. I copied the class, closed Dr. Java, reopened it, pasted the copied class into the window, then pressed enter again somewhere between the same two brackets, and I got the same error again. My version is drjava-20090821-r5004. I use JDK 6.0_4. I have windows xp, media center edition, version 2002, service pack 3. public class ArrayStack<E> implements Stack<E> { private E[] elements; private int top; public ArrayStack(int capacity) { elements = (E[]) new Object[capacity]; top = 0; } public void push(E element) { if( } } edu.rice.cs.util.UnexpectedException: java.lang.RuntimeException: No matching '{' or '(' preceding '}' at offset 241 in ddoc for (Untitled) at edu.rice.cs.drjava.model.definitions.indent.ActionStartPrevStmtPlus.indentLine(ActionStartPrevStmtPlus.java:114) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:92) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.Indenter.indent(Indenter.java:157) at edu.rice.cs.drjava.model.AbstractDJDocument._indentLine(AbstractDJDocument.java:1048) at edu.rice.cs.drjava.model.AbstractDJDocument.indentLines(AbstractDJDocument.java:986) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.indentLines(AbstractGlobalModel.java:3578) at edu.rice.cs.drjava.ui.DefinitionsPane.indentLines(DefinitionsPane.java:1144) at edu.rice.cs.drjava.ui.AbstractDJPane.indent(AbstractDJPane.java:238) at edu.rice.cs.drjava.ui.DefinitionsPane$IndentKeyAction.actionPerformed(DefinitionsPane.java:409) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:622) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.RuntimeException: No matching '{' or '(' preceding '}' at offset 241 in ddoc for (Untitled) at edu.rice.cs.util.UnexpectedException.<init>(UnexpectedException.java:71) ... 42 more Caused by: java.lang.RuntimeException: No matching '{' or '(' preceding '}' at offset 241 in ddoc for (Untitled) at edu.rice.cs.util.UnexpectedException.<init>(UnexpectedException.java:71) at edu.rice.cs.drjava.model.definitions.indent.ActionStartPrevStmtPlus.indentLine(ActionStartPrevStmtPlus.java:114) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:92) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion.indentLine(IndentRuleQuestion.java:96) at edu.rice.cs.drjava.model.definitions.indent.Indenter.indent(Indenter.java:157) at edu.rice.cs.drjava.model.AbstractDJDocument._indentLine(AbstractDJDocument.java:1048) at edu.rice.cs.drjava.model.AbstractDJDocument.indentLines(AbstractDJDocument.java:986) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.indentLines(AbstractGlobalModel.java:3578) at edu.rice.cs.drjava.ui.DefinitionsPane.indentLines(DefinitionsPane.java:1144) at edu.rice.cs.drjava.ui.AbstractDJPane.indent(AbstractDJPane.java:238) at edu.rice.cs.drjava.ui.DefinitionsPane$IndentKeyAction.actionPerformed(DefinitionsPane.java:409) at javax.swing.SwingUtilities.notifyAction(Unknown Source) at javax.swing.JComponent.processKeyBinding(Unknown Source) at javax.swing.JComponent.processKeyBindings(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:622) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) System Properties: DrJava Version drjava-20090821-r5004 DrJava Build Time 20090821-1520 drjava.debug.port = 1233 java.runtime.name = Java(TM) SE Runtime Environment sun.boot.library.path = C:\Program Files\Java\jre6\bin java.vm.version = 16.3-b01 java.vm.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ path.separator = ; java.vm.name = Java HotSpot(TM) Client VM file.encoding.pkg = sun.io sun.java.launcher = SUN_STANDARD user.country = CA sun.os.patch.level = Service Pack 3 java.vm.specification.name = Java Virtual Machine Specification user.dir = <anonymized user.dir> java.runtime.version = 1.6.0_20-b02 java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.endorsed.dirs = C:\Program Files\Java\jre6\lib\endorsed os.arch = x86 java.io.tmpdir = C:\DOCUME~1\GRGOIR~1\LOCALS~1\Temp\ line.separator = "\u000d\u000a" java.vm.specification.vendor = Sun Microsystems Inc. user.variant = os.name = Windows XP sun.jnu.encoding = Cp1252 java.library.path = C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\MiKTeX 2.5\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\gs\gs7.05\bin;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jdk1.6.0_04\bin\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MuseScore 0.9\bin;;C:\PROGRA~1\COMMON~1\MUVEET~1\030625;C:\Program Files\Java\jre6\bin java.specification.name = Java Platform API Specification java.class.version = 50.0 sun.management.compiler = HotSpot Client Compiler os.version = 5.1 user.home = <anonymized user.home> user.timezone = America/New_York java.awt.printerjob = sun.awt.windows.WPrinterJob file.encoding = Cp1252 java.specification.version = 1.6 java.class.path = <anonymized user.dir>\drjava-stable-20090821-r5004.exe user.name = <anonymized user.name> java.vm.specification.version = 1.0 java.home = C:\Program Files\Java\jre6 sun.arch.data.model = 32 user.language = en java.specification.vendor = Sun Microsystems Inc. awt.toolkit = sun.awt.windows.WToolkit java.vm.info = mixed mode, sharing java.version = 1.6.0_20 java.ext.dirs = C:\Program Files\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext sun.boot.class.path = C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes java.vendor = Sun Microsystems Inc. file.separator = \ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding = UnicodeLittle sun.cpu.endian = little java.rmi.server.hostname = 127.0.0.1 sun.desktop = windows sun.cpu.isalist = #DrJava configuration file #Sun Jun 06 11:17:33 EDT 2010 javac.location = C:\\Program Files\\Java\\jdk1.5.0_15\\lib\\tools.jar key.delete.next = [shift DELETE] key.delete.previous = [shift BACK_SPACE] quit.prompt = false recent.files = [C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1\\Account.java,C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1\\SavingsAccount.java,C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1\\BankGUI.java,C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1\\Customer.java,C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1\\Adult.java] window.height = 748 window.width = 1032 window.x = -4 window.y = -4 window.state = 6 last.dir = C:\\Documents and Settings\\<anonymized user.name>\\Desktop\\ass1 last.interactions.dir = C:\\Documents and Settings\\<anonymized user.name>\\Desktop tabbedpanes.state = 512 384 700 400 new.version.notification = stable versions only new.version.notification.last = 1275747665879 drjava.survey.notification.last = 1273878634681 drjava.survey.result.last = http://www.drjava.org/submit-usage.php?rev=5004&os.name=Windows%20XP&os.version=5.1&java.version=1.6.0_20&java.vendor=Sun%20Microsystems%20Inc. file.ext.registration = always Used memory: about 16.09 megabytes Free memory: about 5.19 megabytes Total memory: about 21.27 megabytes Total memory can expand to: about 185.62 megabytes Number of processors/cores: 2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3012083&group_id=44253 |