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

BeanAttributes.getTypes() returns also canonical types

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: