|
From: SourceForge.net <no...@so...> - 2010-07-03 07:18:42
|
Bugs item #3024726, was opened at 2010-07-03 07:18 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3024726&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: 2: Annoying Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: It's reproducible Initial Comment: I have a code I'm using to learn GUI (JPanels etc), in this code, every time I paste this: private final String[] races = {"ab", "da", "va", "da", "b"); at the attributes list and then press enter (to go to the next line) the error happens. Ps.: The error will happen every time you paste the: private final String[] races = {"ab", "da", "va", "da", "b"); at the code under the "private JTextArea texto;" line 20 and then press enter. IT DOESN't need to be the exactly same array, I tested some different ones and it keeps giving the same error, I tested some different variables and the error keeps appearing without the final in it, but if you remove the values the error won't happen, like that: private final String[] races; The error won't happen ;x I'm sorry if I can't give you much more info, but my PC is slow (any hint?...) and restarting Dr Java to see the error takes a lot of time. I'm using Windows XP, 2002 version, SP 3. Processor AMD Duron 1.20 Ghz, 352 mb RAM. I'm with DrJava, Firefox and foxit PDF Reader opened. I'll save this page in my favorites and come back here to see if you need any more info. Error (I''l post the code I was using in the files attachment): edu.rice.cs.util.UnexpectedException: java.lang.RuntimeException: No matching '{' or '(' preceding ')' at offset 806 in ddoc for Janela.java 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 806 in ddoc for Janela.java at edu.rice.cs.util.UnexpectedException.<init>(UnexpectedException.java:71) ... 42 more Caused by: java.lang.RuntimeException: No matching '{' or '(' preceding ')' at offset 806 in ddoc for Janela.java 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 = 2116 java.runtime.name = Java(TM) SE Runtime Environment sun.boot.library.path = C:\Arquivos de programas\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 = BR sun.os.patch.level = Service Pack 3 java.vm.specification.name = Java Virtual Machine Specification user.dir = <anonymized user.home>\Desktop java.runtime.version = 1.6.0_20-b02 java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.endorsed.dirs = C:\Arquivos de programas\Java\jre6\lib\endorsed os.arch = x86 java.io.tmpdir = C:\DOCUME~1\<anonymized user.name>\CONFIG~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:\Arquivos de programas\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\QuickTime\QTSystem\;C:\Arquivos de programas\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/Sao_Paulo java.awt.printerjob = sun.awt.windows.WPrinterJob file.encoding = Cp1252 java.specification.version = 1.6 java.class.path = <anonymized user.home>\Desktop\DrJava.exe user.name = <anonymized user.name> java.vm.specification.version = 1.0 java.home = C:\Arquivos de programas\Java\jre6 sun.arch.data.model = 32 user.language = pt 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:\Arquivos de programas\Java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext sun.boot.class.path = C:\Arquivos de programas\Java\jre6\lib\resources.jar;C:\Arquivos de programas\Java\jre6\lib\rt.jar;C:\Arquivos de programas\Java\jre6\lib\sunrsasign.jar;C:\Arquivos de programas\Java\jre6\lib\jsse.jar;C:\Arquivos de programas\Java\jre6\lib\jce.jar;C:\Arquivos de programas\Java\jre6\lib\charsets.jar;C:\Arquivos de programas\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 = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86 #DrJava configuration file #Sat Jul 03 04:00:30 BRT 2010 javac.location = C:\\Arquivos de programas\\Java\\tools.jar lineenum.enabled = true key.delete.next = [shift DELETE] key.delete.previous = [shift BACK_SPACE] interactions.exit.prompt = false quit.prompt = false interactions.reset.prompt = false save.before.compile = true recent.files = [C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\Janela.java,C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\Race.java,C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\Character.java,C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\Class.java,C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\JanelaTeste.java] window.height = 994 window.width = 1288 window.x = -4 window.y = -4 window.state = 6 last.dir = C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test\\Janela.java last.interactions.dir = C:\\Documents and Settings\\<anonymized user.name>\\Meus documentos\\Danilo\\DnD Test tabbedpanes.state = 640 512 700 400 dialog.drjava.survey.enabled = false new.version.notification.last = 1278024780030 drjava.survey.notification.last = 1273116422218 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. Used memory: about 28,55 megabytes Free memory: about 5,66 megabytes Total memory: about 34,21 megabytes Total memory can expand to: about 92,81 megabytes Number of processors/cores: 1 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3024726&group_id=44253 |