From f224a40dec00cb17c6a4fbc2e480a20b6334bb5b Mon Sep 17 00:00:00 2001 From: Stephan Brandauer Date: Thu, 25 May 2023 09:53:19 +0200 Subject: [PATCH] Java: use containing call as call context, not argument --- .../src/Telemetry/AutomodelApplicationModeCharacteristics.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll b/java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll index e8bd53a8aa3..6e173e8232b 100644 --- a/java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll +++ b/java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll @@ -95,7 +95,7 @@ module ApplicationCandidatesImpl implements SharedCharacteristics::CandidateSig */ RelatedLocation getRelatedLocation(Endpoint e, RelatedLocationType type) { type = CallContext() and - result = asLocation(e) + result = any(Call c | e.asExpr() = [c.getAnArgument(), c.getQualifier()]) } /**