From 0213e930b656fd4c438c2e4142be6f18bed87742 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 27 Mar 2023 20:45:41 +0200 Subject: [PATCH] fix: include inner names in FQN --- .../lll/processor/tools/containers/ClassContainer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java index 3ea6a62..7251aa6 100644 --- a/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java +++ b/src/main/java/ftbsc/lll/processor/tools/containers/ClassContainer.java @@ -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; }