From f84729e1450e2f085286a2995a4e09a461f5e8cc 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 ++-- .../omnifaces/deployment/OmnifacesProcessor.java | 8 +++++++- 2 files changed, 9 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..af9dd22 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,8 @@ import jakarta.enterprise.context.ApplicationScoped; +import org.apache.myfaces.util.lang.AbstractAttributeMap; +import org.apache.myfaces.util.lang.AbstractThreadSafeAttributeMap; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.ClassInfo; @@ -157,6 +159,9 @@ 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, AbstractAttributeMap.class.getName())); + classNames.addAll(collectSubclasses(combinedIndex, AbstractThreadSafeAttributeMap.class.getName())); reflectiveClass.produce(ReflectiveClassBuildItem.builder(classNames.toArray(new String[0])).methods(true).build()); } @@ -247,7 +252,8 @@ private List collectSubclasses(CombinedIndexBuildItem combinedIndex, Str .stream() .map(ClassInfo::toString) .collect(Collectors.toList()); + classes.add(className); return classes; } -} +} \ No newline at end of file