Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-440

MethodUtils.CACHE_METHODS is not accessed in a thread-safe way

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.0.0
    • None
    • None

    Description

      MethodUtils.CACHE_METHODS is not accessed in a thread-safe way.

      The field is a mutable static field, but is not volatile (nor Atomic) and only write accesses are synchronised.
      If one thread writes the field, other reader threads may not see the updates immediately (or ever).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sebb Sebb

            Dates

              Created:
              Updated:

              Slack

                Issue deployment