NicolaIsotta commented on code in PR #682:
URL: https://github.com/apache/myfaces/pull/682#discussion_r1530538862
##########
impl/src/main/java/org/apache/myfaces/cdi/util/CDIUtils.java:
##########
@@ -120,6 +135,17 @@ public static <T> T get(BeanManager beanManager, Type
type, boolean create, Anno
}
}
+ private static String getBeanName(Bean<?> bean)
+ {
+ String name = bean.getName();
+ if (name != null)
+ {
+ return name;
+ }
+ String className = bean.getBeanClass().getSimpleName();
+ return Character.toLowerCase(className.charAt(0)) +
className.substring(1);
Review Comment:
TBH I'm not sure too - guess it depends on how the validator is registered
in CDI?
What I'm sure is that without these lines the fix doesn't work...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]