Skip to content

Commit dce29cc

Browse files
authored
Merge pull request #22138 from github/java-upgrade-jdk-27+29
Java: Support JDK 27
2 parents 1527216 + 242f245 commit dce29cc

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎docs/codeql/reusables/supported-versions-compilers.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
.NET 5, .NET 6, .NET 7, .NET 8, .NET 9, .NET 10","``.sln``, ``.slnx``, ``.csproj``, ``.cs``, ``.cshtml``, ``.xaml``"
1919
GitHub Actions,"Not applicable",Not applicable,"``.github/workflows/*.yml``, ``.github/workflows/*.yaml``, ``**/action.yml``, ``**/action.yaml``"
2020
Go (aka Golang), "Go up to 1.27", "Go 1.11 or more recent", ``.go``
21-
Java,"Java 7 to 26 [5]_","javac (OpenJDK and Oracle JDK),
21+
Java,"Java 7 to 27 [5]_","javac (OpenJDK and Oracle JDK),
2222

2323
Eclipse compiler for Java (ECJ) [6]_",``.java``
2424
Kotlin,"Kotlin 1.8.0 to 2.4.2\ *x*","kotlinc",``.kt``
@@ -35,7 +35,7 @@
3535
.. [2] C23 and C++23 support is currently in beta.
3636
.. [3] Objective-C, Objective-C++, C++/CLI, and C++/CX are not supported.
3737
.. [4] Support for the Arm Compiler (armcc) is preliminary.
38-
.. [5] Builds that execute on Java 7 to 26 can be analyzed. The analysis understands standard language features in Java 8 to 26; "preview" and "incubator" features are not supported. Source code using Java language versions older than Java 8 are analyzed as Java 8 code.
38+
.. [5] Builds that execute on Java 7 to 27 can be analyzed. The analysis understands standard language features in Java 8 to 27; "preview" and "incubator" features are not supported. Source code using Java language versions older than Java 8 are analyzed as Java 8 code.
3939
.. [6] ECJ is supported when the build invokes it via the Maven Compiler plugin or the Takari Lifecycle plugin.
4040
.. [7] JSX and Flow code, YAML, JSON, HTML, and XML files may also be analyzed with JavaScript files.
4141
.. [8] The extractor requires Python 3 to run. To analyze Python 2.7 you should install both versions of Python.

‎java/ql/integration-tests/java/buildless-erroneous/ExtractorInformation.expected‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
| Number of calls with call target | 1 |
33
| Number of calls with missing call target | 4 |
44
| Number of diagnostics from CodeQL Java extractor with severity 5 | 10 |
5-
| Number of diagnostics from CodeQL Java extractor with severity 6 | 2 |
5+
| Number of diagnostics from CodeQL Java extractor with severity 6 | 1 |
66
| Number of expressions with known type | 1 |
77
| Number of expressions with unknown type | 6 |
88
| Number of files | 606 |
@@ -12,6 +12,6 @@
1212
| Number of lines of code with extension java | 7 |
1313
| Percentage of calls with call target | 20 |
1414
| Percentage of expressions with known type | 14 |
15-
| Total number of diagnostics from CodeQL Java extractor | 12 |
15+
| Total number of diagnostics from CodeQL Java extractor | 11 |
1616
| Total number of lines | 13 |
1717
| Total number of lines with extension java | 13 |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The Java extractor and QL libraries now support Java 27.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
| Test.java:0:0:0:0 | 2 javac errors |
21
| Test.java:6:5:6:15 | Unknown or erroneous type for expression of kind TypeAccess |
32
| Test.java:6:23:6:39 | Unexpected symbol for constructor: new NoSuchClass() |
43
| Test.java:6:23:6:39 | Unknown or erroneous type for expression of kind ClassInstanceCreation |
54
| Test.java:6:27:6:37 | Unknown or erroneous type for expression of kind TypeAccess |
65
| Test.java:7:12:7:14 | Unknown or erroneous type for expression of kind VarAccess |
7-
| file://:0:0:0:0 | 2 errors during annotation processing |
6+
| file://:0:0:0:0 | 1 errors during annotation processing |

‎java/ql/test/library-tests/errortype/Test.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ public NoSuchClass test() {
1010
}
1111

1212
// Diagnostic Matches: Unexpected symbol for constructor: new NoSuchClass()
13-
// Diagnostic Matches: 2 javac errors
14-
// Diagnostic Matches: 2 errors during annotation processing
13+
// Diagnostic Matches: 1 errors during annotation processing
1514
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess
1615
// Diagnostic Matches: Unknown or erroneous type for expression of kind ClassInstanceCreation
1716
// Diagnostic Matches: Unknown or erroneous type for expression of kind VarAccess

0 commit comments

Comments
 (0)