Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1677

BeanAttributes.getTypes() returns also canonical types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.5.Final
    • 2.2.1.Final
    • None
    • None

      When a bean class A extends the raw type of a parameterized class B, canonical types of B are added into types of A (in org.jboss.weld.util.reflection.HierarchyDiscovery#discoverTypes()). That causes problems in specialization validation as the getTypes() method of the specializing bean A returns even types it does not have.

      Example:

      class B<T> implements Collection<T> { ... }
      
      class A extends B { ... }
      

      Collection<T> should not be a type of bean A.

              rhn-engineering-jharting Jozef Hartinger
              bafco Matus Abaffy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: