commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14889] New: - ReferenceMap contract
Date Wed, 27 Nov 2002 09:50:50 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message