Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-474

Fixes for thread safety

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • General
    • None

    Description

      org.apache.commons.lang.exception.NestableDelegate

      • the static boolean fields should probably be made volatile to ensure that they are visible across threads
        If not, the Javadoc should be updated to note that changing the setting renders the class not thread-safe.
      • the "nestable" field should be declared final

      org.apache.commons.lang.exception.NestableError / NestableRuntimeException / NestableException

      • Fields "cause" and "delegate" should be made final to improve thread-safety

      The following fields could be made final:
      org.apache.commons.lang.text.ExtendedMessageFormat.registry
      org.apache.commons.lang.text.StrMatcher - class variables in nested classes could be made final
      org.apache.commons.lang.CharSet.set

      Also:
      org.apache.commons.lang.IntHashMap.Entry - the field "key" is never used

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: