Browse Source

Polishing

pull/26044/head
Juergen Hoeller 5 years ago
parent
commit
19911af30a
  1. 7
      spring-expression/src/main/java/org/springframework/expression/spel/standard/SpelCompiler.java

7
spring-expression/src/main/java/org/springframework/expression/spel/standard/SpelCompiler.java

@ -68,7 +68,7 @@ import org.springframework.util.StringUtils; @@ -68,7 +68,7 @@ import org.springframework.util.StringUtils;
*/
public final class SpelCompiler implements Opcodes {
private static final int CLASSES_DEFINED_LIMIT = 10;
private static final int CLASSES_DEFINED_LIMIT = 100;
private static final Log logger = LogFactory.getLog(SpelCompiler.class);
@ -92,7 +92,7 @@ public final class SpelCompiler implements Opcodes { @@ -92,7 +92,7 @@ public final class SpelCompiler implements Opcodes {
/**
* Attempt compilation of the supplied expression. A check is made to see
* if it is compilable before compilation proceeds. The check involves
* visiting all the nodes in the expression Ast and ensuring enough state
* visiting all the nodes in the expression AST and ensuring enough state
* is known about them that bytecode can be generated for them.
* @param expression the expression to compile
* @return an instance of the class implementing the compiled expression,
@ -290,6 +290,9 @@ public final class SpelCompiler implements Opcodes { @@ -290,6 +290,9 @@ public final class SpelCompiler implements Opcodes {
}
/**
* An ASM ClassWriter extension bound to the SpelCompiler's ClassLoader.
*/
private class ExpressionClassWriter extends ClassWriter {
public ExpressionClassWriter() {

Loading…
Cancel
Save