Skip to content

Commit

Permalink
Fix #115: MyFaces AbstractAttributeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 14, 2023
1 parent 850d9c9 commit f84729e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -157,6 +159,9 @@ void registerForReflection(BuildProducer<ReflectiveClassBuildItem> 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());
}
Expand Down Expand Up @@ -247,7 +252,8 @@ private List<String> collectSubclasses(CombinedIndexBuildItem combinedIndex, Str
.stream()
.map(ClassInfo::toString)
.collect(Collectors.toList());
classes.add(className);
return classes;
}

}
}

0 comments on commit f84729e

Please sign in to comment.