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

class-level configuration doesn't apply if only methods are annotated and not the class #575

Open
Ladicek opened this issue Feb 9, 2022 · 0 comments

Comments

@Ladicek
Copy link
Contributor

Ladicek commented Feb 9, 2022

Say I have a bean with a method guarded by some fault tolerance strategy:

package com.example;

@ApplicationScoped
public class MyService {
    @Retry
    public void doSomething() {
        ...
    }
}

and I apply the following configuration:

com.example.MyService/Retry/maxRetries=100

Per the MicroProfile Fault Tolerance specification, this should not apply to the doSomething method.

That's pretty weird, if you ask me. We could change it, but only in the non-compatible mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant