Fix default name evaluation for CDI beans#9350
Fix default name evaluation for CDI beans#9350matthiasblaesing merged 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. |
|
We used the easy workaround (setting the value on the |
|
@NicolaIsotta thank you. |
|
for the record. , PR was not based on master at the cut for RC2 so I changed the milestone. Always possible to change too late now |


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