mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Java: Allow overloading for exact model matches.
This commit is contained in:
@@ -417,19 +417,19 @@ private Element interpretElement0(
|
||||
) {
|
||||
elementSpec(package, type, subtypes, name, signature, _) and
|
||||
(
|
||||
exists(Member m, boolean isExact0 |
|
||||
exists(Member m |
|
||||
(
|
||||
result = m and isExact0 = true
|
||||
result = m and isExact = true
|
||||
or
|
||||
subtypes = true and result.(SrcMethod).overridesOrInstantiates+(m) and isExact0 = false
|
||||
subtypes = true and result.(SrcMethod).overridesOrInstantiates+(m) and isExact = false
|
||||
) and
|
||||
m.hasQualifiedName(package, type, name)
|
||||
|
|
||||
signature = "" and isExact = false
|
||||
signature = ""
|
||||
or
|
||||
paramsStringQualified(m) = signature and isExact = isExact0
|
||||
paramsStringQualified(m) = signature
|
||||
or
|
||||
paramsString(m) = signature and isExact = isExact0
|
||||
paramsString(m) = signature
|
||||
)
|
||||
or
|
||||
exists(RefType t |
|
||||
|
||||
@@ -256,8 +256,8 @@ module Make<
|
||||
|
||||
/**
|
||||
* Holds if there exists a model for which this callable is an exact
|
||||
* match, that is, no overriding or overloading was used to identify this
|
||||
* callable from the model.
|
||||
* match, that is, no overriding was used to identify this callable from
|
||||
* the model.
|
||||
*/
|
||||
predicate hasExactModel() { none() }
|
||||
}
|
||||
@@ -302,8 +302,8 @@ module Make<
|
||||
|
||||
/**
|
||||
* Holds if there exists a model for which this callable is an exact
|
||||
* match, that is, no overriding or overloading was used to identify this
|
||||
* callable from the model.
|
||||
* match, that is, no overriding was used to identify this callable from
|
||||
* the model.
|
||||
*/
|
||||
predicate hasExactModel() { none() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user