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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major 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.

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

      where the collection contents are also immutable.

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

              Created:
              Updated:
              Resolved: