-
Notifications
You must be signed in to change notification settings - Fork 116
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
remove @RequestScoped @ConfigProperties bean and the associated test cases #764
Conversation
…cases, because they are fundamentally broken; see issue eclipse#762
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TCK is absolutely fine. Removing the scope support is a big change. What you raised is an implementation issue.
I am going to close this PR by 5th July if there is no other responses on this PR. |
Close this PR as per my comments above. Please reopen if you still think this should be discussed again. |
@Emily-Jiang I'm sorry for the late reply. I had little time for old github issues because I was moving during the last few weeks. As explained in the other issue: This is not just an implementation issue
SmallRye does not fail this test "by accident", because it does not produce The PR is about removing the test case altogether, because of the discussion with @radcortez in the other issue about whether or not this is even a reasonable use case. He suggested removing it. I'm fine with keeping For example: This whole thing came about because of my other question about no-args constructors. Consider a bean class like this:
The no-args constructor exists, so this does not violate the Config Spec, but I'm not clear on how I should expect it to be used. Is a MicroProfile-Config implementation supposed to always use the no-args constructor to initialize the contextual instance of this bean? That would seem a violation of the CDI Spec in the presence of the I'm simply not sure what the Spec intends to achieve here so I don't feel qualified to write a replace for the testcase. |
Yes, I believe that making these beans Yes, users could write their own dynamic source and observe new values being loaded on each request, but how many times does that happen on an app lifecycle? Is it worth paying the price for this? |
The test cases are fundamentally broken (see issue #762) and cannot possibly work the way they are written.