Skip to content

Commit 01dd264

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: add test case for yml model
1 parent 6b69543 commit 01dd264

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/ql/test/ext/TestModels/Test.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public void test() throws Exception {
4444
Exception e4 = new IllegalStateException((String)source());
4545
sink((String)e4.getMessage()); // $hasValueFlow
4646

47+
Exception e5 = new UnsupportedOperationException((String)source());
48+
sink((String)e5.getMessage()); // $hasValueFlow
49+
4750
Throwable t = new Throwable((Throwable)source());
4851
sink((Throwable)t.getCause()); // $hasValueFlow
4952

0 commit comments

Comments
 (0)