Skip to content

Commit 61eb42f

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

File tree

13 files changed

+18
-12
lines changed

13 files changed

+18
-12
lines changed

java/ql/test-kotlin1/library-tests/exprs_typeaccess/PrintAst.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ B.java:
111111
# 1| 1: [Class] B
112112
# 2| 2: [Constructor] B
113113
# 2| 5: [BlockStmt] { ... }
114+
# 2| 0: [SuperConstructorInvocationStmt] super(...)
114115
# 3| 1: [EmptyStmt] ;
115116
# 6| 3: [Method] fn
116117
# 6| 3: [TypeAccess] void
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

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 --enable-preview --release 25
1+
//semmle-extractor-options: --javac-args --release 25
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

0 commit comments

Comments
 (0)