[Uml-devel] [Bug 131825] java import - method parameter types not resolved correctly
JP Fournier
jfournier121 at rogers.com
Sat Aug 5 00:51:15 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=131825
------- Additional Comments From jfournier121 rogers com 2006-08-05 02:51 -------
The patch below fixes a related problem with resolving return types:
unix> diff -c svn/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp kdesdk/umbrello/umbrello/codeimport/javaimport.cpp
*** svn/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp 2006-08-04 20:43:24.000000000 -0400
--- kdesdk/umbrello/umbrello/codeimport/javaimport.cpp 2006-08-04 20:44:58.000000000 -0400
***************
*** 474,479 ****
--- 474,486 ----
break;
m_srcIndex++;
}
+ // before adding the method, try resolving the return type
+ //
+ UMLObject *obj = resolveClass(typeName);
+ if (obj) {
+ // using the fully qualified name means that a placeholder type will not be created.
+ typeName = obj->getFullyQualifiedName(".");
+ }
Import_Utils::insertMethod(m_klass, op, m_currentAccess, typeName,
m_isStatic, m_isAbstract, false /*isFriend*/,
false /*isConstructor*/, m_comment);
More information about the umbrello-devel
mailing list