Skip to content

Commit

Permalink
Merge pull request #387 from gsmet/improve-ReflectiveHierarchyStep
Browse files Browse the repository at this point in the history
Fix a typo and improve an error message in ReflectiveHierarchyStep
  • Loading branch information
stuartwdouglas authored Dec 24, 2018
2 parents 74a5dd6 + 962bd84 commit 8638731
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class ReflectiveHierarchyStep {
private static final Logger log = Logger.getLogger(ReflectiveHierarchyStep.class);

@Inject
List<ReflectiveHierarchyBuildItem> heiracy;
List<ReflectiveHierarchyBuildItem> hierarchy;

@Inject
CombinedIndexBuildItem combinedIndexBuildItem;
Expand All @@ -56,7 +56,7 @@ public class ReflectiveHierarchyStep {
@BuildStep
public void build() throws Exception {
Set<DotName> processedReflectiveHierarchies = new HashSet<>();
for (ReflectiveHierarchyBuildItem i : heiracy) {
for (ReflectiveHierarchyBuildItem i : hierarchy) {
addReflectiveHierarchy(i.getType(), processedReflectiveHierarchies);
}
}
Expand Down Expand Up @@ -89,7 +89,8 @@ private void addClassTypeHierarchy(DotName name, Set<DotName> processedReflectiv
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, name.toString()));
ClassInfo info = combinedIndexBuildItem.getIndex().getClassByName(name);
if (info == null) {
log.warn("Unable to find annotation info for " + name + ", it may not be correctly registered for reflection");
log.warn("Unable to find annotation info for " + name
+ ", either it should be added to the Jandex index or it might be incorrectly registered for reflection.");
} else {
addClassTypeHierarchy(info.superName(), processedReflectiveHierarchies);
for (FieldInfo i : info.fields()) {
Expand Down

0 comments on commit 8638731

Please sign in to comment.