diff --git a/inject-generator/src/main/java/io/avaje/inject/generator/ExternalProvider.java b/inject-generator/src/main/java/io/avaje/inject/generator/ExternalProvider.java index 09234181f..ba45b09c9 100644 --- a/inject-generator/src/main/java/io/avaje/inject/generator/ExternalProvider.java +++ b/inject-generator/src/main/java/io/avaje/inject/generator/ExternalProvider.java @@ -26,7 +26,7 @@ void init() { providedTypes.add(provide.getCanonicalName()); } for (final Class provide : module.autoProvidesAspects()) { - providedTypes.add(Constants.ASPECT_PROVIDER + "<" + provide.getCanonicalName() + ">"); + providedTypes.add(Util.wrapAspect(provide.getCanonicalName())); } } catch (ServiceConfigurationError expected) { // ignore expected error reading the module that we are also writing