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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.3.Final
    • Fix Version/s: 3.0.4.Final
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manovotn Matej Novotny
                Reporter:
                mkouba Martin Kouba
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: