Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6433082

Threadsafety no mentioned in API documentation?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • sparc
    • solaris_10

      A DESCRIPTION OF THE PROBLEM :
      Documentation requirement. Where do you mention the level of threadsafety a class has, built-in?

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It would be nice, in the reference, to link to a page on threading issues containing the appropriate threading the developer must implement himself for that specific class (or not for that class ). You may have guessed I'm reading "Java Threads" by Oaks and Wong. p. 154 and 157 tells me the Vector class is threadsafe. Can "call add(), remove() and toArray() at the same time without corrupting the internat stator of the Vector object".
      ACTUAL -
      nothing on the subject. I'm glad I have the "Java threads" book

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/Vector.html

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: