Skip to content

Commit 009f9a6

Browse files
committed
Java: Accept new test results after JDK 26 extractor upgrade
1 parent c24b43d commit 009f9a6

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

java/ql/test/library-tests/constants/PrintAst.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ constants/Initializers.java:
8080
# 8| -1: [TypeAccess] int
8181
# 10| 6: [Constructor] Initializers
8282
# 10| 5: [BlockStmt] { ... }
83+
# 10| 0: [SuperConstructorInvocationStmt] super(...)
8384
# 12| 2: [ExprStmt] <Expr>;
8485
# 12| 0: [AssignExpr] ...=...
8586
# 12| 0: [VarAccess] IFIELD2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| constructors/A.java:5:3:5:11 | this(...) |
2-
| constructors/A.java:8:2:8:2 | super(...) |
2+
| constructors/A.java:8:11:8:11 | super(...) |
33
| constructors/A.java:11:3:11:9 | new A(...) |

java/ql/test/library-tests/constructors/PrintAst.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ constructors/A.java:
1010
# 8| 0: [Parameter] i
1111
# 8| 0: [TypeAccess] int
1212
# 8| 5: [BlockStmt] { ... }
13+
# 8| 0: [SuperConstructorInvocationStmt] super(...)
1314
# 10| 5: [Method] main
1415
# 10| 3: [TypeAccess] void
1516
#-----| 4: (Parameters)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//semmle-extractor-options: --javac-args -source 25 -target 25 --enable-preview
1+
//semmle-extractor-options: --javac-args -source 25 -target 25
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
unusedDiagnosticException
2+
| Test.java:16:1:16:95 | // Diagnostic Matches: In file Test.java:8:15 no end location for JCMethodInvocation : yield(x) |

java/ql/test/library-tests/flexible-constructors/PrintAst.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FlexibleConstructors.java:
66
# 2| 0: [Parameter] msg
77
# 2| 0: [TypeAccess] String
88
# 2| 5: [BlockStmt] { ... }
9+
# 2| 0: [SuperConstructorInvocationStmt] super(...)
910
# 3| 1: [ExprStmt] <Expr>;
1011
# 3| 0: [MethodCall] println(...)
1112
# 3| -1: [VarAccess] System.out
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//semmle-extractor-options: --javac-args --release 25 --enable-preview
1+
//semmle-extractor-options: --javac-args --release 25

java/ql/test/library-tests/successors/TestLoopBranch/TestSucc.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@
269269
| TestLoopBranch.java:109:9:109:22 | <obinit>(...) | TestLoopBranch.java:111:3:111:10 | <Expr>; |
270270
| TestLoopBranch.java:109:9:109:22 | Entry | TestLoopBranch.java:110:2:113:2 | { ... } |
271271
| TestLoopBranch.java:109:9:109:22 | Normal Exit | TestLoopBranch.java:109:9:109:22 | Exit |
272-
| TestLoopBranch.java:109:9:109:22 | super(...) | TestLoopBranch.java:109:9:109:22 | <Expr>; |
273-
| TestLoopBranch.java:110:2:113:2 | { ... } | TestLoopBranch.java:109:9:109:22 | super(...) |
272+
| TestLoopBranch.java:110:2:110:2 | super(...) | TestLoopBranch.java:109:9:109:22 | <Expr>; |
273+
| TestLoopBranch.java:110:2:113:2 | { ... } | TestLoopBranch.java:110:2:110:2 | super(...) |
274274
| TestLoopBranch.java:111:3:111:4 | xx | TestLoopBranch.java:111:8:111:9 | 33 |
275275
| TestLoopBranch.java:111:3:111:9 | ...=... | TestLoopBranch.java:112:3:112:10 | <Expr>; |
276276
| TestLoopBranch.java:111:3:111:10 | <Expr>; | TestLoopBranch.java:111:3:111:4 | xx |
@@ -283,8 +283,8 @@
283283
| TestLoopBranch.java:115:9:115:22 | <obinit>(...) | TestLoopBranch.java:117:3:117:9 | <Expr>; |
284284
| TestLoopBranch.java:115:9:115:22 | Entry | TestLoopBranch.java:116:2:119:2 | { ... } |
285285
| TestLoopBranch.java:115:9:115:22 | Normal Exit | TestLoopBranch.java:115:9:115:22 | Exit |
286-
| TestLoopBranch.java:115:9:115:22 | super(...) | TestLoopBranch.java:115:9:115:22 | <Expr>; |
287-
| TestLoopBranch.java:116:2:119:2 | { ... } | TestLoopBranch.java:115:9:115:22 | super(...) |
286+
| TestLoopBranch.java:116:2:116:2 | super(...) | TestLoopBranch.java:115:9:115:22 | <Expr>; |
287+
| TestLoopBranch.java:116:2:119:2 | { ... } | TestLoopBranch.java:116:2:116:2 | super(...) |
288288
| TestLoopBranch.java:117:3:117:4 | xx | TestLoopBranch.java:117:8:117:8 | i |
289289
| TestLoopBranch.java:117:3:117:8 | ...=... | TestLoopBranch.java:118:3:118:9 | <Expr>; |
290290
| TestLoopBranch.java:117:3:117:9 | <Expr>; | TestLoopBranch.java:117:3:117:4 | xx |

java/ql/test/library-tests/successors/TestThrow/TestSucc.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| TestThrow.java:7:10:7:18 | Entry | TestThrow.java:8:2:9:2 | { ... } |
22
| TestThrow.java:7:10:7:18 | Normal Exit | TestThrow.java:7:10:7:18 | Exit |
3-
| TestThrow.java:7:10:7:18 | super(...) | TestThrow.java:7:10:7:18 | Normal Exit |
4-
| TestThrow.java:8:2:9:2 | { ... } | TestThrow.java:7:10:7:18 | super(...) |
3+
| TestThrow.java:8:2:8:2 | super(...) | TestThrow.java:7:10:7:18 | Normal Exit |
4+
| TestThrow.java:8:2:9:2 | { ... } | TestThrow.java:8:2:8:2 | super(...) |
55
| TestThrow.java:11:15:11:21 | Entry | TestThrow.java:12:2:13:2 | { ... } |
66
| TestThrow.java:11:15:11:21 | Normal Exit | TestThrow.java:11:15:11:21 | Exit |
77
| TestThrow.java:12:2:13:2 | { ... } | TestThrow.java:11:15:11:21 | Normal Exit |

0 commit comments

Comments
 (0)