Re: CopyOnWriteHashMap (application to OSGi services)



Lew wrote:
Philipp wrote:
Lew wrote:
Gerhard Aschauer wrote:
see: http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/ConcurrentHashMap.html




Is this a better choice than
<http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html>

?

If so, why?


Thanks to both of you. That is in fact what I'm looking for... especially the backport to older JVMs at
http://backport-jsr166.sourceforge.net/index.php

Based on the Javadocs and unless Gerhard answers my questions, I'm concluding that one should use the standard API class and not the custom New York EDU version.

The documentation of the EDU version indicates that it's a pre-Java 5 implementation and doesn't understand the current memory model. They also talk about it as a replacement for Hashtable of all things, and the documentation says nothing about generics.

I don't know why anyone would recommend this EDU version over the Java version.

Lew,
because the Op said that he must be using V1.3.

Regards,
Gerhard
.



Relevant Pages

  • Re: vfpcompression.fll documentation
    ... Lew wrote: ... Kudos to the author. ... He states that the documentation on the web page ... is incomplete. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Use of the {@code } tag
    ... Lew wrote: ... Mike Amling wrote: ... Other than the OP's failure to read the basic documentation. ...
    (comp.lang.java.programmer)
  • Re: Javadoc is not for beginners
    ... Lew wrote: ... is so simple when you have such a well documented, easy-to-understand documentation. ... Also, since you can generate javadoc for your own projects, others that might try to understand your design will easily be able to check the documentation since it follows a standard form. ...
    (comp.lang.java.help)
  • Re: Use of the {@code } tag
    ... Lew wrote: ... I used to use as suggested in the javadoc API ... It's not new and it is documented, as you would know if you read the documentation. ...
    (comp.lang.java.programmer)
  • Re: Shimano/RaceFace chainring compatibility
    ... Lew wrote: ... I bought a Race Face ... replacement, but on closer inspection I see that the teeth on the Race ...
    (rec.bicycles.tech)