Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-264

addPackages does not include package-private classes in child package when called recursively

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None
    • api
    • None
    • Hide

      1.Create a basic cdi project
      2.Add package-private implementers in child package of a package that contains a Interface
      3.Inject interface in arquillian test class which is in root package.
      4.Use injected field at test method.

      Show
      1.Create a basic cdi project 2.Add package-private implementers in child package of a package that contains a Interface 3.Inject interface in arquillian test class which is in root package. 4.Use injected field at test method.

      With package structure of a.b.root.child when arquillian test class is in a.b.root at the phase of deployment archive creation

      archive.addPackages(true, "a.b.root");
      

      does not includes package-private classes in a.b.root.child or possible other child packages. Thus creates class dependency related problems for arquillian testing such as cdi errors in wildfly-arquillian-container-remote .

      Package-private classes should not be directly usable out of package we know that but they should be addable to deployment for indirect dependency reasons.

              mjobanek Matous Jobanek
              ebuzer ebuzer taha kanat (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: