svn commit: r18770 - trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2010-09-20 01:46:17-0700
New Revision: 18770

Modified:
   trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java

Log:
Fix for desc24 of issue 6145: «Open ArgoUML, add a class and double click in the operation compartment.
Then type in 'dummy(d1 : String) : List' and you have a Class with the name 'void' outside the model element.»

Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java?view=diff&pathrev=18770&r1=18769&r2=18770
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/uml/NotationUtilityUml.java	2010-09-20 01:46:17-0700
@@ -1,13 +1,13 @@
 /* $Id$
  *****************************************************************************
- * Copyright (c) 2009 Contributors - see below
+ * Copyright (c) 2009-2010 Contributors - see below
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
  * Contributors:
- *    mvw
+ *    Michiel van der Wulp
  *****************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -642,13 +642,8 @@
             }
 
             if (p == null) {
-                Object returnType =
-                    ProjectManager.getManager()
-                        .getCurrentProject().findType("void");
-                p = Model.getCoreFactory().buildParameter(
-                            op,
-                            returnType);
-                // op.addParameter(p);
+                /* Leave the type undefined (see issue 6145): */
+                p = Model.getCoreFactory().buildParameter(op, null);
             }
 
             if (name != null) {

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

To unsubscribe from this discussion, e-mail: [[email protected]].
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.