Incorrect usage of bean type that cannot be proxied
Reports incorrect usages of bean types that cannot be proxied.
The container can't proxy certain legal bean types: classes which don't have a non-private constructor with no parameters, classes which are declared final, or have final methods, primitive types, and array types.
The inspection reports the following violations for such bean types:
Managed bean declaring a passivating scope must be
java.io.SerializableBean of non-serializable type cannot be injected into a bean of passivating scope
The container must be able to proxy tha injected normal scoped bean
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
CdiUnproxyableBeanTypesInspection- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: CdiUnproxyableBeanTypesInspection
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |