Skip to content

Commit

Permalink
Merge pull request #20077 from geoand/resteasy-ctor-synthetic
Browse files Browse the repository at this point in the history
Mark the auto-generated RESTEasy constructor as synthetic
  • Loading branch information
stuartwdouglas authored Sep 13, 2021
2 parents 7097a42 + 911610e commit 2b86cad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ public ClassVisitor apply(String className, ClassVisitor classVisitor) {
public void visit(int version, int access, String name, String signature, String superName,
String[] interfaces) {
super.visit(version, access, name, signature, superName, interfaces);
MethodVisitor ctor = visitMethod(Modifier.PUBLIC, "<init>", "()V", null,
MethodVisitor ctor = visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, "<init>",
"()V", null,
null);
ctor.visitCode();
ctor.visitVarInsn(Opcodes.ALOAD, 0);
Expand Down

0 comments on commit 2b86cad

Please sign in to comment.