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

ResolutionByTypeTest.testResolveByTypeWithPrimitives() does not tolerate built-in beans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.1.2.Final, 1.2.0.Beta1
    • 1.1.1.Final
    • None
    • None

      assertEquals(getBeans(Double.class, AnyLiteral.INSTANCE).size(), 2);
      assertEquals(getBeans(double.class, AnyLiteral.INSTANCE).size(), 2);
      

      This will break if there is an application server provided bean with type Double or double no matter what its qualifiers are. The TCK should use the @Number qualifier instead of @Any.

              mbriskar_jira Matej Briskar (Inactive)
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: