Skip to content

Commit

Permalink
#376 Implement more efficient Class Hierarchy Analysis for method de-…
Browse files Browse the repository at this point in the history
…virtualization
  • Loading branch information
mirkosertic committed Apr 12, 2020
1 parent c77b2cd commit 1818c03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private Optional<DirectInvokeMethodExpression> visit(final InvokeVirtualMethodEx

final ClassHierarchyAnalysis theAnalysis = new ClassHierarchyAnalysis(aLinkerContext);
final List<BytecodeLinkedClass> theLinkedClasses = theAnalysis.classesProvidingInvocableMethod(theMethodName, theSignature, aExpression.getInvokedClass(),
aClass -> !aClass.emulatedByRuntime(),
aClass -> !aClass.emulatedByRuntime() && !aClass.getClassName().name().equals(Class.class.getName()),
aMethod -> !aMethod.getAccessFlags().isAbstract() && !aMethod.getAccessFlags().isStatic());

if (theLinkedClasses.size() == 1) {
Expand Down

0 comments on commit 1818c03

Please sign in to comment.