mirror of
https://github.com/ethauvin/rife2.git
synced 2025-04-30 18:48:13 -07:00
Updated generated bytecode of template engine to use the JDK 17 class format
This commit is contained in:
parent
8175494693
commit
fd31820e96
1 changed files with 2 additions and 2 deletions
|
@ -66,13 +66,13 @@ final class Parsed implements Opcodes {
|
|||
}
|
||||
|
||||
byte[] getByteCode() {
|
||||
var class_writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
|
||||
var class_writer = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
|
||||
MethodVisitor method = null;
|
||||
|
||||
var full_classname = (getPackage() + "." + getClassName()).replace('.', '/');
|
||||
|
||||
// define the template class
|
||||
class_writer.visit(V1_4, ACC_PUBLIC|ACC_SYNCHRONIZED, full_classname, null, "rife/template/AbstractTemplate", null);
|
||||
class_writer.visit(V17, ACC_PUBLIC|ACC_SYNCHRONIZED, full_classname, null, "rife/template/AbstractTemplate", null);
|
||||
|
||||
// generate the template constructor
|
||||
method = class_writer.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue