Open kandy-wang opened 1 year ago
明明是287,没有问题啊,287-290都lambda包含的,以起始行号为准
之前通过邮件回复的看起来没有生效,这里获取到的行号是java文件编译成class文件之后的值,可能和直观上从java代码里看到的行号会不完全一样,但结果是没有问题的 可以参考test模块中的这个类,test.call_graph.future.TestFuture
public void test4() throws ExecutionException, InterruptedException {
int b = 1;
FutureTaskChild futureTaskChild = new FutureTaskChild(() -> {
int a = 1;
System.getProperty("");
return null;
});
futureTaskChild.get();
}
lambda表达式的方法行号是39-41,解析出来也是这样
gJcVWsWR4oY0AwzhA7Qufg==#032 | TestFuture | lambda$test4$0 | 39 | 41 | test.call_graph.future.TestFuture:lambda$test4$0()