Skip to content

Commit 39ac497

Browse files
committed
Overlay: Mark RefType.getAStrictAncestor global
1 parent 552e156 commit 39ac497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
422422
* This does not include itself, unless this type is part of a cycle
423423
* in the type hierarchy.
424424
*/
425+
// This is marked global to avoid regressing queries that rely on magic
426+
// bounds for efficient use of getAStrictAncestor.
427+
overlay[global]
425428
RefType getAStrictAncestor() { result = this.getASupertype().getAnAncestor() }
426429

427430
/**

0 commit comments

Comments
 (0)