svn commit: r18069 - trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java

Linus Tolke <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2010-03-06 09:10:42-0800
New Revision: 18069

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java

Log:
Issue 5998: Committing Thomas' patch.

Modified: trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java?view=diff&pathrev=18069&r1=18068&r2=18069
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/reveng/ImportClassLoader.java	2010-03-06 09:10:42-0800
@@ -1,12 +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:
+ *    Thomas N.
  *    tfmorris
  *****************************************************************************
  *
@@ -187,7 +188,9 @@
 	}
 
         // can't remove from existing one so create new one.
-        instance = new ImportClassLoader((URL[]) urls.toArray());
+        URL[] urlArray = new URL[urls.size()];
+        urlArray = urls.toArray(urlArray);
+        instance = new ImportClassLoader(urlArray);
     }
 
     /**

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

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.