Inspectopedia
 
2024.3

Incorrect @Specializes usage

Error
Reliability
New
Last modified: 03 December 2024

Reports incorrect usages of the @Specializes annotation.

  • Specializing bean must extend another bean

  • Specializing method must override a @Produces method of its direct superclass

  • @Named annotation cannot be used on the specializing and specialized class

  • Two or more classes cannot specialize the same superclass

  • Specializing method cannot be static