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
I am attempting to create a custom @service annotation that maps to the @bean and @DefaultScope annotations in Micronaut. The expected behavior is that when a class is annotated with @service, Micronaut should generate a corresponding HelloWorldService$Definition class during compilation. However, this is not happening.
Actual Behaviour
However, this is not happening. The HelloWorldService$Definition class is not being generated and as a result, the bean annotated with @Service is not being injected where it's needed. This is causing a failure in the dependency injection process.
Expected Behavior
I am attempting to create a custom @service annotation that maps to the @bean and @DefaultScope annotations in Micronaut. The expected behavior is that when a class is annotated with @service, Micronaut should generate a corresponding HelloWorldService$Definition class during compilation. However, this is not happening.
Actual Behaviour
However, this is not happening. The
HelloWorldService$Definition
class is not being generated and as a result, the bean annotated with@Service
is not being injected where it's needed. This is causing a failure in the dependency injection process.Steps To Reproduce
1 - Download the main branch from https://github.com/gabriellersa/demo
2 - Run
mvn clean install -U
and observe the generated targetEnvironment Information
OpenJDK Runtime Environment Corretto-17.0.9.8.1 (build 17.0.9+8-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.9.8.1 (build 17.0.9+8-LTS, mixed mode, sharing)
Example Application
No response
Version
4.4.2
The text was updated successfully, but these errors were encountered: