Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-620

Annotated Type test fails depending on constructor ordering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.0.Final, 2.0.5.Final
    • 2.0.4.Final
    • Tests
    • None
    • Weld, Open Liberty

    Description

      The test AnnotatedTypeConfiguratorTest.configuratorInitializedWithOriginalAT() looks to be incorrect as the wrong constructor of the Cat class might be tested.

      The test filters the list of Cat constructors to get a list of constructors with 1 parameter, but there are two constructors that might be returned:

      annotatedConstructors = [
      [BackedAnnotatedConstructor] public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(String),
      [BackedAnnotatedConstructor] @Inject public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(@Cats Feed)
      ]

      The test expects the constructor with the Feed parameter to be returned and will fail if the constructor with the String parameter is returned instead.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            hwibell_jira Hank Ibell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty