Skip to content

Commit

Permalink
Merge pull request #8031 from oztimpower/tp/amazon-lambda-alexa
Browse files Browse the repository at this point in the history
Fix AmazonLambdaProcessor SkillStreamHandler subclass check
  • Loading branch information
gsmet authored Mar 24, 2020
2 parents fee349a + 4756544 commit 9db4713
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt
allKnownImplementors.addAll(combinedIndexBuildItem.getIndex()
.getAllKnownImplementors(REQUEST_STREAM_HANDLER));
allKnownImplementors.addAll(combinedIndexBuildItem.getIndex()
.getAllKnownImplementors(SKILL_STREAM_HANDLER));
.getAllKnownSubclasses(SKILL_STREAM_HANDLER));

if (allKnownImplementors.size() > 0 && providedLambda.isPresent()) {
throw new BuildException(
Expand All @@ -102,7 +102,7 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt

ClassInfo current = info;
boolean done = false;
boolean streamHandler = false;
boolean streamHandler = info.superName().equals(SKILL_STREAM_HANDLER) ? true : false;
while (current != null && !done) {
for (MethodInfo method : current.methods()) {
if (method.name().equals("handleRequest")) {
Expand Down

0 comments on commit 9db4713

Please sign in to comment.