We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa850f commit 5db74a7Copy full SHA for 5db74a7
modules/asm/src/dotty/tools/asm/MethodWriter.java
@@ -1869,7 +1869,12 @@ final int getSize() {
1869
int size = 8;
1870
if (code.length > 0) {
1871
if (code.length > 65536) {
1872
- throw new RuntimeException("Method code too large!");
+ String nameString = "";
1873
+ int i = 0;
1874
+ // find item that corresponds to the index of our name
1875
+ while (i < cw.items.length && (cw.items[i] == null || cw.items[i].index != name)) i++;
1876
+ if (cw.items[i] != null) nameString = cw.items[i].strVal1 +"'s ";
1877
+ throw new RuntimeException("Method "+ nameString +"code too large!");
1878
}
1879
cw.newUTF8("Code");
1880
size += 18 + code.length + 8 * handlerCount;
0 commit comments