提交 65afc100 编写于 作者: M minqi

Merge

......@@ -208,4 +208,13 @@ public class WhiteBox {
.findAny()
.orElse(null);
}
public native int getOffsetForName0(String name);
public int getOffsetForName(String name) throws Exception {
int offset = getOffsetForName0(name);
if (offset == -1) {
throw new RuntimeException(name + " not found");
}
return offset;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册