8302335: IGV: Bytecode not showing

Reviewed-by: rcastanedalo, thartmann, xliu
This commit is contained in:
Tobias Holenstein 2023-02-17 14:26:37 +00:00
parent 57fde75b2a
commit 57c9bc39cd

View File

@ -111,10 +111,11 @@ public class InputMethod extends Properties.Entity {
public void setBytecodes(String text) {
Pattern instruction = Pattern.compile("\\s*(\\d+)\\s*:?\\s*(\\w+)\\s*(.*)(?://(.*))?");
Pattern isInfo = Pattern.compile("(\\s*)(\\d+)(\\s*)(bci:)(.+)");
String[] strings = text.split("\n");
int oldBci = -1;
for (String s : strings) {
if (s.startsWith(" ")) {
if (isInfo.matcher(s).matches()) {
// indented lines are extra textual information
continue;
}