diff --git a/core/src/main/java/lucee/transformer/bytecode/util/JavaProxyFactory.java b/core/src/main/java/lucee/transformer/bytecode/util/JavaProxyFactory.java index 3e4d91bb15..6e527f863b 100644 --- a/core/src/main/java/lucee/transformer/bytecode/util/JavaProxyFactory.java +++ b/core/src/main/java/lucee/transformer/bytecode/util/JavaProxyFactory.java @@ -250,12 +250,16 @@ public static Object createProxy(PageContext pc, final Component cfc, Class exte if (!hasTemplates && interfaces.length > 0) hasTemplates = true; Type typeExtends = Type.getType(extendz); - Type[] typeInterfaces = ASMUtil.toTypes(interfaces); - String[] strInterfaces = new String[typeInterfaces.length + 1]; - for (int i = 0; i < strInterfaces.length; i++) { - strInterfaces[i] = typeInterfaces[i].getInternalName(); + + String[] strInterfaces; + { + Type[] typeInterfaces = ASMUtil.toTypes(interfaces); + strInterfaces = new String[typeInterfaces.length + 1]; + for (int i = 0; i < typeInterfaces.length; i++) { + strInterfaces[i] = typeInterfaces[i].getInternalName(); + } + strInterfaces[typeInterfaces.length] = Types.COMPONENT_WRAP.getInternalName(); } - strInterfaces[strInterfaces.length] = Types.COMPONENT_WRAP.getInternalName(); String className = createClassName("cfc", cfc, pcl.getDirectory(), extendz, interfaces); String classPath = className.replace('.', '/'); // Ensure classPath is using slashes