Summary: | Program crash when importing classes from a java file | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Manuel Reinaldo <manuel.reinaldo> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Manuel Reinaldo
2006-06-13 22:29:56 UTC
SVN commit 551903 by okellogg: parseStmt(): Handle "new" and sequemce of statements at state member declaration. BUG:129107 M +22 -1 javaimport.cpp --- branches/KDE/3.5/kdesdk/umbrello/umbrello/javaimport.cpp #551902:551903 @@ -331,7 +331,28 @@ // At this point we know it's some kind of attribute declaration. while (1) { while (nextToken != "," && nextToken != ";") { - name += nextToken; // add possible array dimensions to `name' + if (nextToken == "=") { + if ((nextToken = advance()) == "new") { + advance(); + if ((nextToken = advance()) == "(") { + skipToClosing('('); + if ((nextToken = advance()) == "{") { + skipToClosing('{'); + } else { + skipStmt(); + break; + } + } else { + skipStmt(); + break; + } + } else { + skipStmt(); + break; + } + } else { + name += nextToken; // add possible array dimensions to `name' + } nextToken = advance(); } UMLObject *o = Import_Utils::insertAttribute(m_klass, m_currentAccess, name, typeName, m_comment); |