[Uml-devel] [Bug 132174] java import - "final" and "comments" in method declaration not parsed correctly
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Aug 10 04:41:03 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=132174
okellogg users sourceforge net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From okellogg users sourceforge net 2006-08-10 06:41 -------
SVN commit 571621 by okellogg:
Attachment 17323 from JP Fournier adds handling of keyword
"final" and trailing comments at argument declarations.
BUG:132174
M +2 -0 ChangeLog
M +4 -0 umbrello/codeimport/javaimport.cpp
--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #571620:571621
@ -8,6 +8,8 @
* Java import: unable to import AzareusCore (131961)
* Java import: error on multidimensional arrays (132017)
* Java import - array types not resolved correctly (132035)
+* Java import - "final" and comments in method declaration
+ not parsed correctly (132174)
Version 1.5.4
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp #571620:571621
@ -502,6 +502,10 @
m_srcIndex++;
while (m_srcIndex < srcLength && m_source[m_srcIndex] != ")") {
QString typeName = m_source[m_srcIndex];
+ if ( typeName == "final" || typeName.startsWith( "//") ) {
+ // ignore the "final" keyword and any comments in method args
+ typeName = advance();
+ }
typeName = joinTypename(typeName);
QString parName = advance();
// the Class might not be resolved yet so resolve it if necessary
More information about the umbrello-devel
mailing list