Skip to content

Commit ce81500

Browse files
committed
Generate compiled SpEL expressions using Java 17 byte code level
Closes gh-34602
1 parent d6a7aef commit ce81500

File tree

1 file changed

+2
-2
lines changed
  • spring-expression/src/main/java/org/springframework/expression/spel/standard

1 file changed

+2
-2
lines changed

Diff for: spring-expression/src/main/java/org/springframework/expression/spel/standard/SpelCompiler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -138,7 +138,7 @@ private String getNextSuffix() {
138138
String className = "org/springframework/expression/spel/generated/CompiledExpression" + getNextSuffix();
139139
String evaluationContextClass = "org/springframework/expression/EvaluationContext";
140140
ClassWriter cw = new ExpressionClassWriter();
141-
cw.visit(V1_8, ACC_PUBLIC, className, null, "org/springframework/expression/spel/CompiledExpression", null);
141+
cw.visit(V17, ACC_PUBLIC, className, null, "org/springframework/expression/spel/CompiledExpression", null);
142142

143143
// Create default constructor
144144
MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);

0 commit comments

Comments
 (0)