Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-804

On de-serialization, SerializationProxy should use the same classloader as the one used for creating the proxy

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Critical
    • 1.1.0.CR3
    • 1.1.0.CR2
    • Proxies
    • None

    Description

      In 1.1.0.CR2, ProxyFactory may use the classloader of the proxied bean type on proxy class creation, although the recorded proxy supertype is java.lang.Object. On de-serialization, SerializableProxy will try to retrieve the classloader using only the supertype information (which in this case is java.lang.Object).

      A better solution, proposed by Stuart and implemented here https://github.com/stuartwdouglas/core/tree/proxySerialization is to record the Bean id in the SerializableProxy and use that information for retrieving the classloader deterministically upon deserialization

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            marius.bogoevici Marius Bogoevici (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: