bean, and</li>
 <li>the name, if any, of the second bean.</li>
 </ul>
 
 <p>
 If the second bean has a name, the bean may not declare a name using <a href="../../inject/Named.html" title="annotation in jakarta.inject"><code>&#064;Named</code></a>. Furthermore, the
 bean must have all the bean types of the second bean.
 </p>
 
 <ul>
 <li>If a bean class of a managed bean is annotated <code>&#064;Specializes</code> , then the bean class must directly extend the
 bean class of a second managed bean. Then the f