We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326f2b0 commit c091fc5Copy full SHA for c091fc5
java/ql/lib/semmle/code/java/ControlFlowGraph.qll
@@ -347,7 +347,17 @@ private module ControlFlowGraphImpl {
347
)
348
}
349
350
- private ThrowableType assertionError() { result.hasQualifiedName("java.lang", "AssertionError") }
+ private ThrowableType actualAssertionError() {
351
+ result.hasQualifiedName("java.lang", "AssertionError")
352
+ }
353
+
354
+ private ThrowableType assertionError() {
355
+ result = actualAssertionError()
356
+ or
357
+ // In case `AssertionError` is not extracted, we use `Error` as a fallback.
358
+ not exists(actualAssertionError()) and
359
+ result.hasQualifiedName("java.lang", "Error")
360
361
362
/**
363
* Gets an exception type that may be thrown during execution of the
0 commit comments