Browse Source

Upgrade CGLIB to ASM9 level as well

See gh-24872
pull/23650/merge
Juergen Hoeller 5 years ago
parent
commit
1ec6843913
  1. 2
      spring-core/src/main/java/org/springframework/asm/Opcodes.java
  2. 4
      spring-core/src/main/java/org/springframework/cglib/core/AsmApi.java

2
spring-core/src/main/java/org/springframework/asm/Opcodes.java

@ -53,7 +53,7 @@ public interface Opcodes { @@ -53,7 +53,7 @@ public interface Opcodes {
/**
* <i>Experimental, use at your own risk. This field will be renamed when it becomes stable, this
* will break existing code using it. Only code compiled with --enable-preview can use this.</i>
* <p>SPRING PATCH: no preview mode check for ASM 9 experimental, enabling it by default.
* <p>SPRING PATCH: no preview mode check for ASM 10 experimental, enabling it by default.
*/
int ASM10_EXPERIMENTAL = 1 << 24 | 10 << 16 | 0 << 8;

4
spring-core/src/main/java/org/springframework/cglib/core/AsmApi.java

@ -21,10 +21,10 @@ import org.springframework.asm.Opcodes; @@ -21,10 +21,10 @@ import org.springframework.asm.Opcodes;
final class AsmApi {
/**
* SPRING PATCH: always returns ASM7.
* SPRING PATCH: always returns ASM9.
*/
static int value() {
return Opcodes.ASM7;
return Opcodes.ASM9;
}
private AsmApi() {

Loading…
Cancel
Save