Skip to content

Commit 8672313

Browse files
committed
Member: Allow methods with empty bodies for overlay
1 parent 009f9d5 commit 8672313

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

java/ql/lib/semmle/code/java/Member.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,13 @@ class SrcMethod extends Method {
623623
then implementsInterfaceMethod(result, this)
624624
else result.getASourceOverriddenMethod*() = this
625625
) and
626-
(exists(result.getBody()) or result.hasModifier("native"))
626+
(
627+
// We allow empty method bodies for the local overlay variant to allow
628+
// calls to methods only fully extracted in base.
629+
isOverlay() or
630+
exists(result.getBody()) or
631+
result.hasModifier("native")
632+
)
627633
}
628634
}
629635

0 commit comments

Comments
 (0)