fix(Io): fix finding classes by name

This commit is contained in:
Bleuzen 2022-03-21 00:16:52 +01:00 committed by oSumAtrIX
parent b6ca31a970
commit b957501e70
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -34,7 +34,7 @@ object Io {
jos.putNextEntry(e)
val clazz = classes.singleOrNull {
clazz -> clazz.name == e.name
clazz -> clazz.name+".class" == e.name // clazz.name is the class name only while e.name is the full filename with extension
};
if (clazz != null) {
val cw = ClassWriter(ClassWriter.COMPUTE_MAXS or ClassWriter.COMPUTE_FRAMES)