Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7801

HttpSession attributes containing unmodifiable collections of immutable objects trigger unnecessary replication

    XMLWordPrintable

Details

    • 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:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: