You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/11/27 10:50:50 UTC

DO NOT REPLY [Bug 14889] New: - ReferenceMap contract

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14889>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14889

ReferenceMap contract

           Summary: ReferenceMap contract
           Product: Commons
           Version: 1.0 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Collections
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: efrancos@incontext.fr


I switched from SoftRefHashMap to ReferenceMap and I noticed that the purge
method as become private and is called in many places in the source code, but
the documentation for the method states that it is called only for write operations.
I must be sure that the stale mappings are removed for read operations too
(ex:size) and though currently the implementation calls purge() for all read
methods as well this may change in the future.
I think that calling purge on all [relevant] public methods is the right
approach to preserve a coherent state.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>