Commit 1a0896e6 authored by pcregut's avatar pcregut

Solves a rare bug. An inner class may not have a name with a dollar if it is remove

parent 40a2e694
......@@ -1335,7 +1335,9 @@ public class ApplicationReader {
int i = name.lastIndexOf('$');
// Reconstruction of the innerName and outerName.
String innerName = name.substring(i + 1, name.length() - 1); // Removes also the ";" at the end.
String outerName = name.substring(0, i) + ";"; // Adds the ";" at the end.
// Obfuscators may remove mention of the inner name. We must cope with it.
String outerName =
(i<0) ? null : name.substring(0, i) + ";"; // Adds the ";" at the end.
classVisitor.visitInnerClass(name, outerName, innerName, accessFlags);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment