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

NoSuchBeanException shouldn't show internally generated class names #11320

Open
mikehearn opened this issue Nov 6, 2024 · 0 comments
Open

NoSuchBeanException shouldn't show internally generated class names #11320

mikehearn opened this issue Nov 6, 2024 · 0 comments
Labels
info: good first issue Good for newcomers type: improvement A minor improvement to an existing feature

Comments

@mikehearn
Copy link
Contributor

mikehearn commented Nov 6, 2024

Expected Behavior

The message should be clear of extraneous noise and punctuation that could discourage people from reading it:

NoSuchBeanException: No bean of type Foo exists.
* FooImpl, a candidate of Foo, is disabled because:
 - Class Bar is not present

For bonus points, in the standard case of a single failed constraint:

NoSuchBeanException: No bean of type Foo exists. FooImpl is disabled because class Bar is not present

Actual Behaviour

NoSuchBeanException: No bean of type [Foo] exists.
* [$FooImpl$Definition$Intercepted] a candidate of [Foo] is disabled because:
 - Class [Bar] is not present

Steps To Reproduce

Depend on a bean that depends on a missing class (or whatever).

Environment Information

No response

Example Application

No response

Version

4.6.2

@graemerocher graemerocher added type: improvement A minor improvement to an existing feature info: good first issue Good for newcomers labels Nov 6, 2024
altro3 added a commit to altro3/micronaut-core that referenced this issue Nov 8, 2024
altro3 added a commit to altro3/micronaut-core that referenced this issue Nov 8, 2024
altro3 added a commit to altro3/micronaut-core that referenced this issue Nov 8, 2024
altro3 added a commit to altro3/micronaut-core that referenced this issue Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info: good first issue Good for newcomers type: improvement A minor improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants