Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3783

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

    Details

      Description

      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

      Address addr = Address.parse("MY_QUEUE; {create : always}");
      System.out.println("Addr1 : " + addr);
      		
      Address addr2 = Address.parse(addr.toString());
      System.out.println("Addr2 : " + addr2);
      

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

        Attachments

          Activity

            People

            • Assignee:
              rajith Rajith Attapattu
              Reporter:
              rajith Rajith Attapattu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: