You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/21 18:30:35 UTC
[jira] [Resolved] (QPID-3783) When creating an Address using a
toString() of another address object, "None" is used as the subject when it
should be Null.
[ https://issues.apache.org/jira/browse/QPID-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajith Attapattu resolved QPID-3783.
------------------------------------
Resolution: Fixed
> 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
> Components: Java Client
> Affects Versions: 0.14
> Reporter: Rajith Attapattu
> Assignee: Rajith Attapattu
> Priority: Minor
> Labels: possibly_complete
> Fix For: 0.15
>
>
> 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:dev-subscribe@qpid.apache.org