HHH-15595 Fallback JVM version for ByteBuddy can be bumped to JAVA_V11

This commit is contained in:
Sanne Grinovero 2022-10-11 22:08:23 +01:00 committed by Sanne Grinovero
parent 622273aeb2
commit fe4091bd42
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ public final class ByteBuddyState {
private final TypeCache<TypeCache.SimpleKey> basicProxyCache;
ByteBuddyState() {
this( ClassFileVersion.ofThisVm( ClassFileVersion.JAVA_V8 ) );
this( ClassFileVersion.ofThisVm( ClassFileVersion.JAVA_V11 ) );
}
ByteBuddyState(ClassFileVersion classFileVersion) {

View File

@ -52,10 +52,10 @@ public class BytecodeProviderImpl implements BytecodeProvider {
/**
* Constructs a ByteBuddy BytecodeProvider instance which attempts to auto-detect the target JVM version
* from the currently running one, with a fallback on Java 8.
* from the currently running one, with a fallback on Java 11.
*/
public BytecodeProviderImpl() {
this( ClassFileVersion.ofThisVm( ClassFileVersion.JAVA_V8 ) );
this( ClassFileVersion.ofThisVm( ClassFileVersion.JAVA_V11 ) );
}
/**