quarkusio/gizmo

Allow generating interfaces

Closed this issue · 0 comments

ClassCreator currently calls ASM ClassVisitor with ACC_PUBLIC | ACC_SUPER | ACC_SYNTHETIC | extraAccess around here:

cv.visit(Opcodes.V11, ACC_PUBLIC | ACC_SUPER | ACC_SYNTHETIC | extraAccess, className, signature, superClass, interfaces);

which is only suitable for common classes, but not interfaces. To make interfaces possible, we need

  • A way to set ACC_INTERFACE and ACC_ABSTRACT flags
  • A way to unset ACC_SUPER