[~ljnelson] bq. I'll check the specification to see if private constructors annotated with @Inject are permitted (can't remember).
A bean type must be proxyable (must have private constructor with no parameters) if an injection point resolves to a bean that has an associated decorator (see also 3.11. Unproxyable bean types). However, Weld does not perform the check if [relaxed construction|http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html#relaxedConstruction] is enabled (by default in Weld SE). - It looks like relaxed construction does not work well with descorators though. - It works well. The only problem is a *private no-args constructor* - Java limitation. Weld should perform the check even if relaxed construction is enabled.
Anyway, a simple reproducer would be really helpful here. |
|