You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by th...@apache.org on 2006/10/13 10:49:44 UTC

svn commit: r463595 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java

Author: thilina
Date: Fri Oct 13 01:49:44 2006
New Revision: 463595

URL: http://svn.apache.org/viewvc?view=rev&rev=463595
Log:
http://issues.apache.org/jira/browse/WSCOMMONS-110
fixing the ClassCast..
My bad.. Have missed this point at the recent refactoring..


Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?view=diff&rev=463595&r1=463594&r2=463595
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java Fri Oct 13 01:49:44 2006
@@ -404,7 +404,7 @@
 
 				        if (partContentID == null & partIndex == 1) {
 				        	String id = "firstPart_"+UUIDGenerator.getUUID();
-				            attachmentsMap.put(id, nextPart);
+				            attachmentsMap.put(id, nextPart.getDataHandler());
 				            firstPartId = id;
 				            return nextPart.getDataHandler();
 				        }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org