Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-579

PassiveExpiringMap doesn't work when the key is a byte array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.0
    • None
    • Map
    • None
    • GNU/Linux Ubuntu 15.10 64 bits, OpenJDK 1.8.0_65

    • Important

    Description

      When you put a (key,value) pair in a PassiveExpiringMap and the key is byte[] you can't retrieve it.

      Code to reproduce the problem:

      byte[] key =

      {0,0,0,1};
      PassiveExpiringMap<byte[],byte[]> map = new PassiveExpiringMap<byte[],byte[]> ();
      map.put(key,key);

      byte[] queryKey = {0,0,0,1}

      ;
      //this should be true
      map.containsKey(queryKey) == false

      Attachments

        Activity

          People

            Unassigned Unassigned
            rabit Roger R Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: