Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7889

HttpSession attributes containing unmodifiable collections of immutable objects trigger unnecessary replication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.DR10
    • 7.1.0.DR9
    • Clustering
    • None
    • Hide

      Create session attribute containing an unmodifiable collection of immutable objects.
      e.g.
      HttpSession.setAttribute("foo", Collection.singleton("bar"));

      On subsequent request, lookup attribute created above.
      e.g.
      HttpSession.getAttribute("foo");

      Session replicates at the end of the request, even though the session attribute is immutable.

      Show
      Create session attribute containing an unmodifiable collection of immutable objects. e.g. HttpSession.setAttribute("foo", Collection.singleton("bar")); On subsequent request, lookup attribute created above. e.g. HttpSession.getAttribute("foo"); Session replicates at the end of the request, even though the session attribute is immutable.

    Description

      Unmodifiable collections include:
      Collections.empty*();
      Collections.singleton*();
      Collections.unmodifiable*();

      where the collection contents are also immutable.

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: