Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Sep 6, 2024
1 parent 3854201 commit 91674ad
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91674ad

Please sign in to comment.