Inspectopedia Help

Incorrect @Specializes usage

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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Jakarta EE: Contexts and Dependency Injection (CDI), 233.SNAPSHOT

Last modified: 13 July 2023