Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5965

WildflyTestRunner should handle both jakarta.inject.Inject and javax.inject.Inject

    XMLWordPrintable

Details

    Description

      WildflyTestRunner.doInject() works by looking for the javax.inject.Inject annotation. It needs to also handle jakarta.inject.Inject, and not fail if one or the other is not found.

      This blocks WFLY-16606, as testsuite/integration/manualmode in full WF uses WildflyTestRunner. EE 8 Inject and EE 10 inject use the same maven GA so it's not possible to work around this by putting both on the classpath.

      OT: As part of this I may add a new WildFlyTestRunner (capital F) and make WildflyTestRunner (lower case f) a deprecated subclass of it. Now that I noticed the improper case it will bug me whenever I see the class! (See WFCORE-5966 for this last bit.)

      Attachments

        Activity

          People

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: