prathyushreddylpr commented on code in PR #1542:
URL: https://github.com/apache/cxf/pull/1542#discussion_r1421496326
##########
rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/utils/JAXBUtilsTest.java:
##########
@@ -45,7 +48,10 @@ public void extendedXmlJavaTypeAdapter() {
}
private void correctValueType(Class<?> clazz) {
- Field field = clazz.getDeclaredFields()[0];
+ Field[] fields = clazz.getDeclaredFields();
Review Comment:
@reta , When we call correctValueType() with class
CustomerDetailsWithExtendedAdapter we get two fields. The second field is
"org.apache.cxf.jaxrs.utils.JAXBUtilsTest$CustomerDetailsWithExtendedAdapter.this$0"
and we are getting this because CustomerDetailsWithExtendedAdapter is an inner
class of JAXBUtilsTest. Since it's not static, it holds an implicit reference
to the JAXBUtilsTest instance that created it, which is represented as a
synthetic field this$0.
--
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]