Don't union <init> method sets together

<init> methods do not override each other. This caused us to incorrectly
calculate visibility in some cases in the VisibilityTransformer.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 5af43165ff
commit bc52f061fb
  1. 2
      asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt

@ -137,7 +137,7 @@ class ClassPath(
for (member in members) { for (member in members) {
val access = getMemberAccess(clazz, member) val access = getMemberAccess(clazz, member)
if (access != null && (access and Opcodes.ACC_STATIC != 0 || fields)) { if (access != null && (access and Opcodes.ACC_STATIC != 0 || member.name == "<init>" || fields)) {
continue continue
} }

Loading…
Cancel
Save