mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 15:48:08 +00:00
error message when constant pool is too big
This commit is contained in:
@@ -77,8 +77,12 @@ public class ActionConstantPool extends Action {
|
||||
*/
|
||||
@Override
|
||||
protected int getContentBytesLength() {
|
||||
return calculateSize(constantPool);
|
||||
}
|
||||
|
||||
public static int calculateSize(List<String> strings) {
|
||||
int res = 2;
|
||||
for (String s : constantPool) {
|
||||
for (String s : strings) {
|
||||
res += Utf8Helper.getBytesLength(s) + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user