Fix default name evaluation for CDI beans#9350
Fix default name evaluation for CDI beans#9350NicolaIsotta wants to merge 1 commit intoapache:masterfrom
Conversation
according to the specs, the first char must always be lowercased
490471f to
c0f9db6
Compare
|
This looks sane to me. From a quick read I think the authors of the special casing from https://bz.apache.org/netbeans/show_bug.cgi?id=249438 have mixed up the managed bean specification and the java beans specification. At least CDI 1.1 and JSF 2.3 agree on the format. |
matthiasblaesing
left a comment
There was a problem hiding this comment.
Only eyeballed this, but makes sense.
@NicolaIsotta how did you test this?
|
@NicolaIsotta thanks for your explanation. Indeed I just wanted to ensure that proper testing happened. You'd like to get this into NB30 and there might be an option for that. For that please rebase your PR onto the delivery branch (ensure that only your single commit is moved!). After that update this PR and change the target branch for the PR to delivery. @ebarboni you set milestone to NB31 - would it be ok to still move this to NB30, if Nicola makes the changes outlined in the previous paragraph? The current behavior is indeed broken and the new behavior is correct to my understanding of the JSF and CDI specifications. I tested this PR and it does the right thing. |


This PR fixes the evaluation of the default name for CDI beans to strictly align with the CDI specifications.
Quoting CDI 1.1 specs:
Subsequent specifications all maintain the exact same text. Here is the latest: Jakarta EE CDI 4.1.
Historical Notes
I'm not exactly sure why the behavior was originally changed. My guess is that some implementations weren't perfectly aligned with the specifications at the time. For historical context on the deviation, see:
NB: this currently targets master, but it would be nice to have this in NB30
^Add meaningful description above
Click to collapse/expand PR instructions
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.
If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.
PR approval and merge checklist:
If this PR targets the delivery branch: don't merge. (full wiki article)