[Uml-devel] [Bug 131825] java import - method parameter types not resolved correctly

Oliver Kellogg okellogg at users.sourceforge.net
Sat Aug 5 01:15:17 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 okellogg users sourceforge net  2006-08-05 03:15 -------
SVN commit 569867 by okellogg:

Further patch from JP Fournier applies same change to the return value.
CCBUG:131825


 M  +6 -0      javaimport.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp #569866:569867
 @ -474,6 +474,12  @
                 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