From cff26f6f1d008f3bfaea68243681953ca2559ff4 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 14 Sep 2023 15:04:16 -0400 Subject: [PATCH] Fix #115: MyFaces AbstractAttributeMap --- .github/workflows/build.yml | 4 ++-- .../quarkiverse/omnifaces/deployment/OmnifacesProcessor.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2db8c57..b37f375 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,5 +55,5 @@ jobs: - name: Build with Maven run: mvn -B clean install -Dno-format - # - name: Build with Maven (Native) - # run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip + - name: Build with Maven (Native) + run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip \ No newline at end of file diff --git a/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java b/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java index aad69d3..444b299 100644 --- a/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java @@ -7,6 +7,7 @@ import jakarta.enterprise.context.ApplicationScoped; +import org.apache.myfaces.util.lang.AbstractThreadSafeAttributeMap; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.ClassInfo; @@ -157,6 +158,8 @@ void registerForReflection(BuildProducer reflectiveCla classNames.addAll(collectClassesInPackage(combinedIndex, "org.omnifaces.el.functions")); // All utilities classNames.addAll(collectClassesInPackage(combinedIndex, "org.omnifaces.util")); + // MyFaces + classNames.addAll(collectSubclasses(combinedIndex, AbstractThreadSafeAttributeMap.class.getName())); reflectiveClass.produce(ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).methods(true).build()); } @@ -250,4 +253,4 @@ private List collectSubclasses(CombinedIndexBuildItem combinedIndex, Str return classes; } -} +} \ No newline at end of file