[Issue 6408] Error importing sourcecode: IllegalArgumentException: Both items must be different generalizable elements

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.issues
Message-ID <[email protected]>
http://argouml.tigris.org/issues/show_bug.cgi?id=6408






------- Additional comments from [email protected] Wed Feb 22 12:05:10 -0800 2012 -------
Is there a way with the Facade to get the name with package ?
A first patch could be done if this method exists ?

Classe : org.argouml.language.java.reveng.Modeller

#addClass(String name, short modifiers, List<String> typeParameters,
            String superclassName, List<String> interfaces, String javadoc,
            boolean forceIt)
...
 if (getLevel() == 0) {
            return;
        }

        if (superclassName != null) {
            Object parentClass = null;
            try {
		// TEST
                Context ctx = getContext(superclassName);
                String classiferName = getClassifierName(superclassName);
                
		//  
		parentClass = ctx.get(classiferName, false, javaProfile);

		// we have parentClass == mClass
		// If name of the package+class of parentClass doessn't match 
with superclassName
		// ClassifierNotFoundException
		// END TEST               
       
                getGeneralization(currentPackage, parentClass, mClass);
            } catch (ClassifierNotFoundException e) {
...

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

To unsubscribe from this list, e-mail: [[email protected]].
Please do not reply to this mail. Instead, add your comments in the issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.