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

The id generated by URLScanner.getId(String) is not unique in case of directories

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.1.Final
    • Fix Version/s: 2.2.2.Final
    • Component/s: Java SE Support
    • Labels:
      None
    • Environment:

      All platforms

    • Steps to Reproduce:
      Hide

      .) Create two java projects in eclipse.
      .) Let one project depends on the ohter.
      .) Both must have a beans.xml provided.
      .) Inject a bean from the first project in the second one.
      .) Use the bean from the second project in an unit tests

      Show
      .) Create two java projects in eclipse. .) Let one project depends on the ohter. .) Both must have a beans.xml provided. .) Inject a bean from the first project in the second one. .) Use the bean from the second project in an unit tests

      Description

      The id generated by org.jboss.weld.environment.se.discovery.url.URLScanner.getId(String) is not unique in case of directories.

      In eclipse compiled classes of a java project will be saved in a folder called classes. If there are more projects which depend on each other this will result in duplicate ids with the value 'classes'.

      Later on this id will be used during creation of the bean managers an therefore on e bean manager will be overridden by another one if the BeanDeploymentArchive provides the same id.

      At the this will lead to dependency resolution error because of missing beans.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                twoeckinger Thomas Wöckinger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: