From: SourceForge.net <no...@so...> - 2007-10-17 21:58:22
|
Bugs item #1815387, was opened at 2007-10-17 16:58 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=1815387&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: Definitions (source editor) Group: 4: Serious Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dan Smith (dlsmith) Assigned to: Nobody/Anonymous (nobody) Summary: Editor should discard parse errors Initial Comment: The editor chokes on source files containing something like the following: @Foo class Bar { } The file can't be saved or opened. That's unfortunate, since a very natural place to put an annotation is in front of a class declaration. The search for a package declaration is stymied by the presence of an annotation, which the parser doesn't support; our handling of the error (and any other tokenizing errors that might occur, unless we wish to assert that no parse errors will *ever* occur...) should be made more elegant. koala.dynamicjava.parser.TokenMgrError: Lexical error at line 1, column 1. Encountered: "@" (64), after : "@" at koala.dynamicjava.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:1805) at koala.dynamicjava.parser.Parser.jj_consume_token(Parser.java:12392) at koala.dynamicjava.parser.Parser.packageDeclaration(Parser.java:1018) at edu.rice.cs.drjava.model.definitions.DefinitionsDocument.getPackageName(DefinitionsDocument.java:988) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFileAs(AbstractGlobalModel.java:3204) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.saveFile(AbstractGlobalModel.java:3166) at edu.rice.cs.drjava.ui.MainFrame._save(MainFrame.java:3989) at edu.rice.cs.drjava.ui.MainFrame.access$2500(MainFrame.java:112) at edu.rice.cs.drjava.ui.MainFrame$28.actionPerformed(MainFrame.java:533) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:573) at java.awt.Component.processEvent(Component.java:5331) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4021) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636) at java.awt.Component.dispatchEventImpl(Component.java:3907) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1815387&group_id=44253 |