javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-23

Clarify the enumerated types defined in javax.ejb.LockType in the Singleton chapter

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.6
    • Fix Version/s: 6.0.7
    • Component/s: doc
    • Labels:
      None

      Description

      In:
      http://download.oracle.com/javaee/6/tutorial/doc/gipvi.html
      there are quite a few references to

      @Lock(WRITE)
      and
      @Lock(READ)

      should actually be something like this, for a clearer example:

      @Lock(LockType.WRITE)
      and
      @Lock(LockType.READ)

        Activity

        Hide
        Ian Evans added a comment -

        The current code examples will work if you import javax.ejb.LockType.READ/WRITE, but this could be clarified by explicitly adding a sentence stating that the LockType enumerated types are READ and WRITE, with a code snippet showing @Lock(LockType.READ) and @Lock(LockType.WRITE).

        Show
        Ian Evans added a comment - The current code examples will work if you import javax.ejb.LockType.READ/WRITE, but this could be clarified by explicitly adding a sentence stating that the LockType enumerated types are READ and WRITE, with a code snippet showing @Lock(LockType.READ) and @Lock(LockType.WRITE).
        Hide
        Ian Evans added a comment -

        Updated documentation source. Fix will be in 6.0.7.

        Show
        Ian Evans added a comment - Updated documentation source. Fix will be in 6.0.7.

          People

          • Assignee:
            Ian Evans
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: