Merge pull request #10457 from github/smowton/fix/java-really-unique-fixedHasLocation

Java: really return a unique location for non-source entities
This commit is contained in:
Chris Smowton
2022-09-20 10:46:45 +01:00
committed by GitHub

View File

@@ -216,7 +216,7 @@ private predicate fixedHasLocation(Top l, Location loc, File f) {
min(Location candidateLoc |
hasLocation(l, candidateLoc)
|
candidateLoc order by candidateLoc.getFile().toString()
candidateLoc order by candidateLoc.getFile().getAbsolutePath()
) and
not hasSourceLocation(l, _, _) and
locations_default(loc, f, _, _, _, _)