[Issue 6479] RE of C# hangs on file import

[email protected] Sat, 14 Dec 2013 14:34:54 -0800 (PST)
Newsgroups gmane.comp.lang.uml.argouml.issues
Message-ID <[email protected]>
http://argouml.tigris.org/issues/show_bug.cgi?id=6479






------- Additional comments from [email protected] Sat Dec 14 14:34:54 -0800 2013 -------
Also, I've found that when importing multiple files it is more likely to hang.

For example I currently see a Thread named "Import Thread" spinning with the
following stack trace:
FileOutputStream.writeBytes(byte[], int, int, boolean) line: not available
[native method]	
FileOutputStream.write(byte[], int, int) line: not available	
BufferedOutputStream.flushBuffer() line: not available	
BufferedOutputStream.flush() line: not available	
PrintStream.write(byte[], int, int) line: not available	
StreamEncoder.writeBytes() line: not available	
StreamEncoder.implFlushBuffer() line: not available	
StreamEncoder.flushBuffer() line: not available	
OutputStreamWriter.flushBuffer() line: not available	
PrintStream.write(String) line: not available	
PrintStream.print(String) line: not available	
PrintStream.println(String) line: not available	
Parser.ReportError(String) line: 2872	
Parser.RecoverFromError(String, int) line: 2861	
Parser.RecoverFromError(int) line: 2853	
Parser.parseQualifiedIdentifier() line: 1605	
Parser.parseClassMember() line: 685	
Parser.parseClass() line: 471	
Parser.parseNamespaceOrTypes() line: 191	
Parser.parseNamespace() line: 431	
Parser.parseNamespaceOrTypes() line: 187	
Parser.parse(TokenCollection, List<String>) line: 148	
CSharpImport.parseFile(Project, File, ImportSettings, int) line: 149	
CSharpImport.doImportPass(Project, Collection, ImportSettings, ProgressMonitor,
int, int) line: 103	
CSharpImport.parseFiles(Project, Collection, ImportSettings, ProgressMonitor)
line: 82	
Import(ImportCommon).doImportInternal(List<File>, ProgressMonitor, int) line: 566	
Import(ImportCommon).doImport(ProgressMonitor) line: 540	
Import$2.run() line: 434	
Thread.run() line: not available	

The console output is filled with the following:
Error: Expected 5 found: 254 in token 152371 [254]
Error: Expected 5 found: 254 in token 152372 [254]
Invalid member syntax in token 152373 [254]
Error: Expected 5 found: 254 in token 152373 [254]
Error: Expected 5 found: 254 in token 152374 [254]
Invalid member syntax in token 152375 [254]
Error: Expected 5 found: 254 in token 152375 [254]
Error: Expected 5 found: 254 in token 152376 [254]
Invalid member syntax in token 152377 [254]
Error: Expected 5 found: 254 in token 152377 [254]

A some point, it is expecting an Ident(5) but reads an EOF(254).

I'd be glad to help but can't figure out where is the grammar file for c#.

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=448&dsMessageId=3070296

To unsubscribe from this list, e-mail: [[email protected]].
Please do not reply to this mail. Instead, add your comments in the issue.