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

RIBean needs new definition of equality

XMLWordPrintable

      Due to the implementation of equals/hashCode in RIBean only one ManagedBean is allowed per underlying java class, so for example if you use the SPI to add two AnnotatedTypes with the same underlying class but different qualifiers only one will get installed.

      The following patch fixes this, would it be possible to get some feedback on it?

      The AnnotatedTypeIdProvider class in the patch can also be used to implement meaningful equlity for WeldAnnotated*

        1. multiple-beans-1.diff
          29 kB
        2. multiple-beans-2.diff
          30 kB
        3. ri-bean-id-creator.patch
          17 kB
        4. ri-bean-id-creator2.patch
          20 kB

            sdouglas1@redhat.com Stuart Douglas
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: