Skip to content

Commit

Permalink
Use correct Jandex class when checking presence of new method
Browse files Browse the repository at this point in the history
Code was checking wrongly a class inside Weld that use that same name ClassInfo
that the one on Jandex that is where the new method is present.
  • Loading branch information
robmv authored and mkouba committed Sep 19, 2016
1 parent 4c020fd commit de9c1f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private <T> SlimAnnotatedType<T> loadSlimAnnotatedType(Class<T> clazz, String bd

private boolean isJandexSetFlagsAvailable() {
try {
Method setFlags = AccessController.doPrivileged(GetDeclaredMethodAction.of(ClassFileInfo.class, "setFlags", short.class));
Method setFlags = AccessController.doPrivileged(GetDeclaredMethodAction.of(org.jboss.jandex.ClassInfo.class, "setFlags", short.class));
return setFlags != null;
} catch (Exception e) {
return false;
Expand Down

0 comments on commit de9c1f7

Please sign in to comment.