You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: buildScripts/tests.ant.xml
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -140,24 +140,33 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn
140
140
</sequential>
141
141
</macrodef>
142
142
143
+
<!-- 11 is LTS -->
143
144
<targetname="test.javac11"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using javac11 as underlying compiler">
144
145
<test.javacX version="11" />
145
146
</target>
146
147
148
+
<!-- 17 is LTS -->
147
149
<targetname="test.javac17"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using javac17 as underlying compiler">
148
150
<test.javacX version="17" />
149
151
</target>
150
152
153
+
<!-- 21 is LTS -->
151
154
<targetname="test.javac21"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using javac21 as underlying compiler">
152
155
<test.javacX version="21" />
153
156
</target>
154
157
155
158
<!-- For non-LTS versions, feel free to aggressively update these to the current non-LTS openjdk version, and delete them once they roll out of the 6 month window. -->
156
159
160
+
<!-- 24 is non-LTS, but the current release -->
157
161
<targetname="test.javac24"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using javac24 as underlying compiler">
158
162
<test.javacX version="24" />
159
163
</target>
160
164
165
+
<!-- 25 is LTS -->
166
+
<targetname="test.javac25"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using javac25 as underlying compiler">
167
+
<test.javacX version="25" />
168
+
</target>
169
+
161
170
<targetname="test.javacCurrent"depends="test.compile, test.formatter.compile"description="runs the tests on your default VM, using its javac as underlying compiler">
162
171
<echo>Running TestJavac on JVM${ant.java.version}, with the javac built into your VM distributon.</echo>
@@ -337,5 +346,5 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn
337
346
</target>
338
347
339
348
<targetname="test"depends="test.javacCurrent, test.eclipse-202503"description="runs the tests against the default JVM, javac, and eclipse" />
340
-
<targetname="test.broad"depends="test.javac8, test.javac17, test.javac21, test.javac24, test.eclipse-oxygen, test.eclipse-202503, test.eclipse-202006-jdk8"description="runs the tests against the default JVM, javac, and eclipse" />
349
+
<targetname="test.broad"depends="test.javac8, test.javac17, test.javac21, test.javac24, test.javac25, test.eclipse-oxygen, test.eclipse-202503, test.eclipse-202006-jdk8"description="runs the tests against the default JVM, javac, and eclipse" />
/* This section includes flags that would ordinarily be in Flags, but which are 'too new' (we don't compile against older versions of javac for compatibility). */
80
+
/* This section includes flags that would ordinarily be in com.sun.tools.javac.code.Flags, but which are 'too new' (we don't compile against older versions of javac for compatibility). */
81
81
publicstaticfinallongRECORD = 1L << 61; // ClassSymbols, MethodSymbols, VarSymbols (Marks types as being records, as well as the 'fields' in the compact declaration, and the canonical constructor)
82
82
publicstaticfinallongCOMPACT_RECORD_CONSTRUCTOR = 1L << 51; // MethodSymbols (the 'implicit' many-args constructor that records have)
83
83
publicstaticfinallongUNINITIALIZED_FIELD = 1L << 51; // VarSymbols (To identify fields that the compact record constructor won't initialize)
84
84
publicstaticfinallongGENERATED_MEMBER = 1L << 24; // MethodSymbols, VarSymbols (marks methods and the constructor generated in records)
publicstaticfinallongSEALED = 1L << 62 | 1L << 48; // ClassSymbols (Flag to indicate sealed class/interface declaration) - from the introduction of sealed until ~jdk23, this was 62. In jdk24, it's 48. Ugh.
86
86
publicstaticfinallongNON_SEALED = 1L << 63; // ClassSymbols (Flag to indicate that the class/interface was declared with the non-sealed modifier)
87
+
publicstaticfinallongIMPLICIT_CLASS = 1L << 19; // ClassSymbols (Flag to indicate that the class/interface wasn't actually written out; it is an implicitly declared top-level class). Introduced in JDK25, JEP512.
87
88
88
89
/**
89
90
* Returns the version of this java compiler, i.e. the JDK that it shipped in. For example, for javac v1.7, this returns {@code 7}.
0 commit comments