Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni0451 committed Jun 22, 2024
1 parent 094ba70 commit a42a4fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/lenni0451/reflect/proxy/ProxyBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public ProxyClass build() {
BuiltClass builtClass = this.buildClass(methodsReference);
this.proxyClass = this.classDefiner.defineProxyClass(builtClass, this.superClass, this.interfaces);

//Set the static fieldss
//Set the static fields
Field methods = Fields.getDeclaredField(this.proxyClass, METHODS_FIELD);
Fields.setObject(null, methods, methodsReference.value);

Expand Down Expand Up @@ -265,9 +265,9 @@ private void addMethods(final ClassBuilder cb, final Method[] methods) {
.insn(BUILDER.opcode("DUP")) //this.invocationHandler, this, this
.field(BUILDER.opcode("GETFIELD"), cb.getName(), "method" + methodId, desc(ProxyMethod.class)) //this.invocationHandler, this, this.methodN
.insn(BUILDER.opcode("DUP")) //this.invocationHandler, this, this.methodN, this.methodN
.jump(BUILDER.opcode("IFNONNULL"), elseLabel); //this.invocationHandler, this, this.methodN
.jump(BUILDER.opcode("IFNONNULL"), elseLabel) //this.invocationHandler, this, this.methodN
.insn(BUILDER.opcode("POP")); //this.invocationHandler, this
mb
.insn(BUILDER.opcode("POP")) //this.invocationHandler, this
.var(BUILDER.opcode("ALOAD"), 0) //^, this
.field(BUILDER.opcode("GETSTATIC"), cb.getName(), PROXY_METHOD_CLASSES_FIELD, desc(Class[].class)) //^, this, PROXY_METHOD_CLASSES
.intPush(BUILDER, methodId) //^, this, PROXY_METHOD_CLASSES, methodId
Expand Down

0 comments on commit a42a4fa

Please sign in to comment.