Skip to content

Commit

Permalink
Catch the proper exception when resolving k8s watcher generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Apr 28, 2021
1 parent 5cc625e commit c06abd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void findWatchedClasses(final DotName implementor, final ApplicationInde
if (watcherGenericTypes.size() == 1) {
watchedClasses.add(watcherGenericTypes.get(0).name());
}
} catch (IllegalStateException ignored) {
} catch (IllegalArgumentException ignored) {
// when the class has no subclasses and we were not able to determine the generic types, it's likely that
// the watcher will fail due to not being able to deserialize the class
if (applicationIndex.getIndex().getAllKnownSubclasses(c.name()).isEmpty()) {
Expand Down

0 comments on commit c06abd3

Please sign in to comment.