Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build should fail if a bean or producer declares multiple scopes #2178

Closed
mkouba opened this issue Apr 23, 2019 · 0 comments · Fixed by #2179
Closed

Build should fail if a bean or producer declares multiple scopes #2178

mkouba opened this issue Apr 23, 2019 · 0 comments · Fixed by #2179
Labels
area/arc Issue related to ARC (dependency injection)
Milestone

Comments

@mkouba
Copy link
Contributor

mkouba commented Apr 23, 2019

2.4.3. Declaring the bean scope

A bean class or producer method or field may specify at most one scope type annotation. If a bean class or producer method or field specifies multiple scope type annotations, the container
automatically detects the problem and treats it as a definition error.

Currently, the first scope annotation found is used.

@mkouba mkouba added the area/arc Issue related to ARC (dependency injection) label Apr 23, 2019
@mkouba mkouba added this to the 0.14.0 milestone Apr 23, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Apr 23, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Apr 23, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Apr 23, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Apr 23, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant