lambda表达式中报错cannot find local variable "变量名"
在debug运行程序时,lambda表达式中的某句代码报错 cannot find local variable "变量名"(没有找到变量),但实际上该变量名是存在的。
这个报错是jdk存在的bug,只有在debug的时候会出现,并不会影响程序的运行。
posted on 2020-11-17 09:24 SilenceAries 阅读(11345) 评论(0) 收藏 举报
在debug运行程序时,lambda表达式中的某句代码报错 cannot find local variable "变量名"(没有找到变量),但实际上该变量名是存在的。
这个报错是jdk存在的bug,只有在debug的时候会出现,并不会影响程序的运行。
posted on 2020-11-17 09:24 SilenceAries 阅读(11345) 评论(0) 收藏 举报