[ http://issues.apache.org/jira/browse/WSCOMMONS-132?page=all ]
Sameera Madushan Jayasoma updated WSCOMMONS-132:
------------------------------------------------
Attachment: TestAddAttribute.java
> Behaviour of the overloaded method "addAttribute" in OMElementImpl is
> different
> ---------------------------------------------------------------------------------
>
> Key: WSCOMMONS-132
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-132
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Sameera Madushan Jayasoma
> Attachments: TestAddAttribute.java
>
>
> Hi all,
> There are two overloaded methods ( addAttribute) in OMElementImpl Class
> 1. public OMAttribute addAttribute(String attributeName, String value,
> OMNamespace ns) ;
> 2. public OMAttribute addAttribute(OMAttribute at) ;
> practically the behaviour of these two methods should be the same.
> But when an attribute with an undeclared namespace is given to the 2nd
> method, it works fine.
> But the second method throws and exception.
> Herewith I have attached a test class.
> I have fix the bug and attached the patch file
> Sameera Madushan
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]