Skip to content

Commit

Permalink
Use constants available in ECJ 4.28
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jun 29, 2023
1 parent 6aea368 commit 7329c7c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions java/org/apache/jasper/compiler/JDTCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,7 @@ public void cleanup() {
} else if (opt.equals("19")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version shipped with
// Tomcat. May be supported in a snapshot build.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_Source, "20");
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_20);
} else if (opt.equals("21")) {
// Constant not available in latest ECJ version shipped with
// Tomcat. May be supported in a snapshot build.
Expand Down Expand Up @@ -395,11 +392,8 @@ public void cleanup() {
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version shipped with
// Tomcat. May be supported in a snapshot build.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_TargetPlatform, "20");
settings.put(CompilerOptions.OPTION_Compliance, "20");
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_20);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_20);
} else if (opt.equals("21")) {
// Constant not available in latest ECJ version shipped with
// Tomcat. May be supported in a snapshot build.
Expand Down

0 comments on commit 7329c7c

Please sign in to comment.