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".

        Activity

        Rajith Attapattu created issue -
        Rajith Attapattu made changes -
        Field Original Value New Value
        Fix Version/s 0.15 [ 12319043 ]
        Affects Version/s 0.14 [ 12316855 ]
        Component/s Java Client [ 12311389 ]
        Robbie Gemmell made changes -
        Labels possibly_complete
        Rajith Attapattu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development