cristof commented on code in PR #329:
URL: https://github.com/apache/openjpa/pull/329#discussion_r4749298470
##########
openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java:
##########
@@ -1557,9 +1552,12 @@ public Object getElementFieldValue(Object val) {
/**
* Pass the given value to the given method of the converter.
*/
- private Object invokeConverter(Method m, Object val) {
+ @SuppressWarnings("unchecked")
+ private Object invokeConverter(Method m, Object val) {
+ BeanWrapper<?> wrapper = null;
try {
- return m.invoke(getConverterInstance(), val);
+ wrapper = getConverterWrapper(getConverter());
Review Comment:
Added the code suggested and changed the way CDIBeanWrapperFactory works to
keep a cache of injection target and creational context. The tests worked fine,
but @rmannibucau review is really needed on that cache impl.
--
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]