davsclaus commented on code in PR #10000: URL: https://github.com/apache/camel/pull/10000#discussion_r1198829462
########## tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlWriterGeneratorMojo.java: ########## @@ -779,7 +800,7 @@ private Predicate<Member> accessible(Class<?> clazz) { } else if (accessType == XmlAccessType.FIELD) { return m -> m.getDeclaringClass() == clazz && ((isSetter(m) || isGetter(m)) && isXmlBindAnnotated(m) - || isField(m) && !Modifier.isStatic(m.getModifiers()) && !Modifier.isTransient(m.getModifiers())); + || isField(m) && /*isNotAnyXml(m) && */!Modifier.isStatic(m.getModifiers()) && !Modifier.isTransient(m.getModifiers())); Review Comment: I guess a little bit of code that was commented out ########## tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ModelXmlWriterGeneratorMojo.java: ########## @@ -791,7 +812,13 @@ private Predicate<Member> accessible(Class<?> clazz) { private boolean isXmlBindAnnotated(Member m) { return Stream.of(((AnnotatedElement) m).getAnnotations()) - .anyMatch(a -> a.getClass().getAnnotatedInterfaces()[0].getType().getTypeName().startsWith("jakarta.xml.bind.annotation.")); + .anyMatch(a -> a.getClass().getAnnotatedInterfaces()[0].getType().getTypeName().startsWith("jakarta.xml.bind.annotation.") + /*&& !a.getClass().getAnnotatedInterfaces()[0].getType().getTypeName().endsWith("XmlAnyElement")*/); Review Comment: I guess a little bit of code that was commented out -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org