Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-343

Functor singleton classes do not implement singleton pattern correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • Functor
    • None

    Description

      All classes in package "org.apache.commons.collections.functors" that advertise that they have singleton instance actually cannot guarantee that. Because of serialization support multiple instances of those classes can exist at runtime.

      Following classes are making this false claim:

      • CloneTransformer
      • ExceptionClosure
      • ExceptionFactory
      • ExceptionPredicate
      • ExceptionTransformer
      • FalsePredicate
      • NOPClosure
      • NOPTransformer
      • NotNullPredicate
      • NullPredicate
      • StringValueTransformer
      • TruePredicate

      Attachments

        1. fix_functor_singletones.patch
          15 kB
          Goran Hacek

        Activity

          People

            Unassigned Unassigned
            ghacek Goran Hacek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: