You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically we see that the OtherService$Proxyprovidesorg.example.myapp.OtherService.
When OtherService is package protected, then that provides clause is not generated. This causes the issue as the provides is used to control the ordering of the wiring and now that it is missing the OtherService$Proxy can wire / be created AFTER OtherUserOf and produce the error.
The reason for this is that generally when A extends B then we only say that A provides B when B is public.
We need to adjust this logic for the case when A is a proxy. Here we have OtherService$Proxy extends OtherService and we need avaje-inject to say that OtherService$Proxy provides OtherService even when it is package protected.
The text was updated successfully, but these errors were encountered:
Getting an error when creating the BeanScope when using Aspects on a bean that is not public (package protected).
How to reproduce:
Add a package protected access on a bean with an aspect like:
Have another bean that depends on it like:
The issue:
When OtherService is public access we see in the generated code:
Specifically we see that the
OtherService$Proxy
providesorg.example.myapp.OtherService
.When OtherService is package protected, then that provides clause is not generated. This causes the issue as the provides is used to control the ordering of the wiring and now that it is missing the OtherService$Proxy can wire / be created AFTER OtherUserOf and produce the error.
The reason for this is that generally when A extends B then we only say that A provides B when B is public.
We need to adjust this logic for the case when A is a proxy. Here we have OtherService$Proxy extends OtherService and we need avaje-inject to say that OtherService$Proxy provides OtherService even when it is package protected.
The text was updated successfully, but these errors were encountered: