fix: include inner names in FQN

This commit is contained in:
zaaarf 2023-03-27 20:45:41 +02:00
parent 7ac0f5f700
commit 0213e930b6
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -54,7 +54,9 @@ public class ClassContainer {
throw new TargetNotFoundException("class", fqn);
if(innerNames != null) {
StringBuilder newFQN = new StringBuilder(fqn);
for(String inner : innerNames) {
newFQN.append("$").append(inner);
try {
int anonClassCounter = Integer.parseInt(inner);
//anonymous classes cannot be validated!
@ -80,8 +82,8 @@ public class ClassContainer {
if(elem == null)
throw new TargetNotFoundException("class", inner);
}
}
this.fqn = fqn;
this.fqn = newFQN.toString();
} else this.fqn = fqn;
this.fqnObf = findClassName(fqn, mapper);
this.elem = elem;
}