Skip to content

Commit d5ac122

Browse files
committed
Write invoker in most recent JVM version to support CDS.
1 parent e45c1fb commit d5ac122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/utility/dispatcher/JavaDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ protected static Object proxy(Class<?> proxy, Map<Method, Dispatcher> dispatcher
13171317
@SuppressFBWarnings(value = {"REC_CATCH_EXCEPTION", "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED"}, justification = "Expected internal invocation.")
13181318
protected static Invoker invoker() {
13191319
ClassWriter classWriter = new ClassWriter(AsmVisitorWrapper.NO_FLAGS);
1320-
classWriter.visit(ClassFileVersion.JAVA_V5.getMinorMajorVersion(),
1320+
classWriter.visit(ClassFileVersion.ofThisVm().getMinorMajorVersion(),
13211321
Opcodes.ACC_PUBLIC,
13221322
Type.getInternalName(Invoker.class) + "$Dispatcher",
13231323
null,

0 commit comments

Comments
 (0)