From 545d54158802360339144a047ac1b7debe529f0a Mon Sep 17 00:00:00 2001 From: idrissrio Date: Wed, 8 Jul 2026 16:48:22 +0200 Subject: [PATCH] Accept new JDK 27 results --- .../java/buildless-erroneous/ExtractorInformation.expected | 4 ++-- java/ql/test/library-tests/errortype/Diags.expected | 3 +-- java/ql/test/library-tests/errortype/Test.java | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/java/ql/integration-tests/java/buildless-erroneous/ExtractorInformation.expected b/java/ql/integration-tests/java/buildless-erroneous/ExtractorInformation.expected index b43963e4aca..8f3146c677b 100644 --- a/java/ql/integration-tests/java/buildless-erroneous/ExtractorInformation.expected +++ b/java/ql/integration-tests/java/buildless-erroneous/ExtractorInformation.expected @@ -2,7 +2,7 @@ | Number of calls with call target | 1 | | Number of calls with missing call target | 4 | | Number of diagnostics from CodeQL Java extractor with severity 5 | 10 | -| Number of diagnostics from CodeQL Java extractor with severity 6 | 2 | +| Number of diagnostics from CodeQL Java extractor with severity 6 | 1 | | Number of expressions with known type | 1 | | Number of expressions with unknown type | 6 | | Number of files | 606 | @@ -12,6 +12,6 @@ | Number of lines of code with extension java | 7 | | Percentage of calls with call target | 20 | | Percentage of expressions with known type | 14 | -| Total number of diagnostics from CodeQL Java extractor | 12 | +| Total number of diagnostics from CodeQL Java extractor | 11 | | Total number of lines | 13 | | Total number of lines with extension java | 13 | diff --git a/java/ql/test/library-tests/errortype/Diags.expected b/java/ql/test/library-tests/errortype/Diags.expected index dfd80b2466a..722f0c1e9c0 100644 --- a/java/ql/test/library-tests/errortype/Diags.expected +++ b/java/ql/test/library-tests/errortype/Diags.expected @@ -1,7 +1,6 @@ -| Test.java:0:0:0:0 | 2 javac errors | | Test.java:6:5:6:15 | Unknown or erroneous type for expression of kind TypeAccess | | Test.java:6:23:6:39 | Unexpected symbol for constructor: new NoSuchClass() | | Test.java:6:23:6:39 | Unknown or erroneous type for expression of kind ClassInstanceCreation | | Test.java:6:27:6:37 | Unknown or erroneous type for expression of kind TypeAccess | | Test.java:7:12:7:14 | Unknown or erroneous type for expression of kind VarAccess | -| file://:0:0:0:0 | 2 errors during annotation processing | +| file://:0:0:0:0 | 1 errors during annotation processing | diff --git a/java/ql/test/library-tests/errortype/Test.java b/java/ql/test/library-tests/errortype/Test.java index c393faf7599..d108117fd28 100644 --- a/java/ql/test/library-tests/errortype/Test.java +++ b/java/ql/test/library-tests/errortype/Test.java @@ -10,8 +10,7 @@ public class Test { } // Diagnostic Matches: Unexpected symbol for constructor: new NoSuchClass() -// Diagnostic Matches: 2 javac errors -// Diagnostic Matches: 2 errors during annotation processing +// Diagnostic Matches: 1 errors during annotation processing // Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess // Diagnostic Matches: Unknown or erroneous type for expression of kind ClassInstanceCreation // Diagnostic Matches: Unknown or erroneous type for expression of kind VarAccess