You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/10/23 09:46:34 UTC

[camel-spring-boot] 01/01: fix: Adapt JAXBRuntimeHints to the behavior change in Spring 6.0.13

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch fix-JAXBRuntimeHintsTest
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit f78df864f8d16afffb749f5a5e5a9bc46dd19b3e
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Mon Oct 23 11:45:25 2023 +0200

    fix: Adapt JAXBRuntimeHints to the behavior change in Spring 6.0.13
---
 .../java/org/apache/camel/xml/jaxb/springboot/JAXBRuntimeHints.java    | 3 ++-
 .../src/test/java/org/apache/camel/xml/jaxb/springboot/Book.java       | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components-starter/camel-xml-jaxb-starter/src/main/java/org/apache/camel/xml/jaxb/springboot/JAXBRuntimeHints.java b/components-starter/camel-xml-jaxb-starter/src/main/java/org/apache/camel/xml/jaxb/springboot/JAXBRuntimeHints.java
index d8002c20ecf..15ef71320c5 100644
--- a/components-starter/camel-xml-jaxb-starter/src/main/java/org/apache/camel/xml/jaxb/springboot/JAXBRuntimeHints.java
+++ b/components-starter/camel-xml-jaxb-starter/src/main/java/org/apache/camel/xml/jaxb/springboot/JAXBRuntimeHints.java
@@ -198,7 +198,8 @@ final class JAXBRuntimeHints implements RuntimeHintsRegistrar {
                     type -> hints.reflection().registerType(type, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS,
                     MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.DECLARED_FIELDS));
             hints.reflection().registerType(c, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS,
-                    MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.DECLARED_FIELDS);
+                    MemberCategory.INTROSPECT_PUBLIC_METHODS, MemberCategory.INVOKE_DECLARED_METHODS,
+                    MemberCategory.DECLARED_FIELDS);
         }
         boolean classDetected = false;
         for (String className : getClassesFromIndexes(classLoader)) {
diff --git a/components-starter/camel-xml-jaxb-starter/src/test/java/org/apache/camel/xml/jaxb/springboot/Book.java b/components-starter/camel-xml-jaxb-starter/src/test/java/org/apache/camel/xml/jaxb/springboot/Book.java
index 72829dcdef5..280e5b1fef2 100644
--- a/components-starter/camel-xml-jaxb-starter/src/test/java/org/apache/camel/xml/jaxb/springboot/Book.java
+++ b/components-starter/camel-xml-jaxb-starter/src/test/java/org/apache/camel/xml/jaxb/springboot/Book.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.xml.jaxb.springboot;
 
-import jakarta.xml.bind.annotation.XmlAttribute;
 import jakarta.xml.bind.annotation.XmlElement;
 import jakarta.xml.bind.annotation.XmlRootElement;
 import jakarta.xml.bind.annotation.XmlTransient;