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

Globally selected alternatives with the same priority do not result in ambiguous dependency

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.4.Final
    • 3.0.3.Final
    • None
    • None

    Description

      Currently, the priority is ignored and the index is used:
      https://github.com/weld/core/blob/2.4/impl/src/main/java/org/jboss/weld/bootstrap/enablement/GlobalEnablementBuilder.java#L155

      I believe this is a regression introduced when we tried to work around the spec issue mentioned in CDI-437 (see also WELD-1660). And later when we implemented the "priority scaling" (in the context of WELD-2000) we forgot to use Item#getPriority() again.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            mkouba@redhat.com Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: