When creating an Address using a toString() of another address object, "None" 
is used as the subject when it should be Null.
----------------------------------------------------------------------------------------------------------------------------

                 Key: QPID-3783
                 URL: https://issues.apache.org/jira/browse/QPID-3783
             Project: Qpid
          Issue Type: Bug
            Reporter: Rajith Attapattu
            Assignee: Rajith Attapattu
            Priority: Minor


When printing an address we use "None" to denote an empty subject.
Therefore we If create an address object using the toString() method of another 
address object, None is used as the subject.

The following code snippet illustrates the issue
{code}
Address addr = Address.parse("MY_QUEUE; {create : always}");
System.out.println("Addr1 : " + addr);
                
Address addr2 = Address.parse(addr.toString());
System.out.println("Addr2 : " + addr2);
{code}

The solution is to set the subject field to null if the subject is "None".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to