Uploaded image for project: 'XWork'
  1. XWork
  2. XW-1137

AnnotationActionValidatorManager uses SynchronizedMap, yet doesn't sync...

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.6
    • None
    • Validators
    • Any Struts env.

    Description

      I have a fundamental question about the use of SynchronizedMap within AnnotationActionValidatorManager and never actually performing the manual synchronization that is highly/highly suggested for Collections.SynchronizedMap. If the instantiated objects can truly be used across sessions then they should be synchronized. If they are not really used in a multi-threaded manner, shouldn't AnnotationActionValidatorManager simply be using a non-synchronized Map? The non-deterministic warning/comment in Javadoc for SynchronizedMap seems pretty significant to me.

      Attachments

        Activity

          People

            Unassigned Unassigned
            crazymac9 David McClanahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: