8074381: java.lang.AssertionError during compilingSummary: Add extra functional interface check to prevent crash during code generationReviewed-by: vromero