Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-464

InjectionPointImpl using wrong class loader during serialize/deserialize, dropping qualifiers, and omiting qualifier values.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0
    • Injection and Lookup
    • None
    • All

    Description

      InjectionPointImpl was using the default class loader instead of the thread class loader during serialize/deserialize which was resulting in class not found exceptions. It was also dropping every other qualifier due to the way readObject was double-reading the qualifiers while looking for the '~' delimeter. And finally, the writeObject code was writing the type of the qualifiers rather than writing the whole object, thus omiting qualifier values (i.e. @Named(org.apache.webbeans.foo) resulted in @Named(value=)).

      Attached patch resolves these issues when applied on top of OWB-462.

      Attachments

        1. InjectionPoint_fix.patch
          6 kB
          Paul J. Reder

        Activity

          People

            gerdogdu Gurkan Erdogdu
            rederpj Paul J. Reder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified