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

DecoratorResolutionTest - raw types not tested properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.2.Final
    • 1.2.1.Final
    • Tests
    • None

      DecoratorResolutionTest.testUnboundedTypeVariables()
      DecoratorResolutionTest.testObject()
      DecoratorResolutionTest.testUnboundedTypeVariablesAndObject()

      all test the following specification assertion:

      A raw bean type is considered assignable to a parameterized delegate type if the raw types are identical and all type parameters of the delegate type are either unbounded type variables or
      java.lang.Object.

      However, for example DecoratorResolutionTest.testObject() tests that a decorator with Baz<Object> delegate type is resolved for a bean type defined as Baz<T>

      • delegate type (Baz<Object>) matches the assertion - 'all type parameters of the delegate type are either unbounded type variables or java.lang.Object."
      • bean type (Baz<T>) does not match the assertion. The assertion talks about a raw bean type. Baz<T> is not a raw type but a parameterized type which is parameterized with a type variable. Baz.class, which is a raw type, should be used instead as a bean type. This applies to all three tests.

              tremes1@redhat.com Tomas Remes
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: