@@ -310,11 +310,12 @@ public void cleanup() {
310310 case "22" -> settings .put (CompilerOptions .OPTION_Source , CompilerOptions .VERSION_22 );
311311 case "23" -> settings .put (CompilerOptions .OPTION_Source , CompilerOptions .VERSION_23 );
312312 case "24" -> settings .put (CompilerOptions .OPTION_Source , CompilerOptions .VERSION_24 );
313- case "25" ->
313+ case "25" -> settings .put (CompilerOptions .OPTION_Source , CompilerOptions .VERSION_25 );
314+ case "26" ->
314315 // Constant not available in latest ECJ version shipped with
315316 // Tomcat. May be supported in a snapshot build.
316317 // This is checked against the actual version below.
317- settings .put (CompilerOptions .OPTION_Source , "25 " );
318+ settings .put (CompilerOptions .OPTION_Source , "26 " );
318319 default -> {
319320 log .warn (Localizer .getMessage ("jsp.warning.unknown.sourceVM" , opt ));
320321 settings .put (CompilerOptions .OPTION_Source , CompilerOptions .VERSION_21 );
@@ -416,11 +417,15 @@ public void cleanup() {
416417 settings .put (CompilerOptions .OPTION_Compliance , CompilerOptions .VERSION_24 );
417418 }
418419 case "25" -> {
420+ settings .put (CompilerOptions .OPTION_TargetPlatform , CompilerOptions .VERSION_25 );
421+ settings .put (CompilerOptions .OPTION_Compliance , CompilerOptions .VERSION_25 );
422+ }
423+ case "26" -> {
419424 // Constant not available in latest ECJ version shipped with
420425 // Tomcat. May be supported in a snapshot build.
421426 // This is checked against the actual version below.
422- settings .put (CompilerOptions .OPTION_TargetPlatform , "25 " );
423- settings .put (CompilerOptions .OPTION_Compliance , "25 " );
427+ settings .put (CompilerOptions .OPTION_TargetPlatform , "26 " );
428+ settings .put (CompilerOptions .OPTION_Compliance , "26 " );
424429 }
425430 default -> {
426431 log .warn (Localizer .getMessage ("jsp.warning.unknown.targetVM" , opt ));
0 commit comments