mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Java: Allow methods with empty bodies for overlay
This commit is contained in:
@@ -624,7 +624,13 @@ class SrcMethod extends Method {
|
||||
then implementsInterfaceMethod(result, this)
|
||||
else result.getASourceOverriddenMethod*() = this
|
||||
) and
|
||||
(exists(result.getBody()) or result.hasModifier("native"))
|
||||
(
|
||||
// We allow empty method bodies for the local overlay variant to allow
|
||||
// calls to methods only fully extracted in base.
|
||||
isOverlay() or
|
||||
exists(result.getBody()) or
|
||||
result.hasModifier("native")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user