现在的位置: 首页 > 综合 > 正文

错误分析:finally block does not complete normally

2013年10月20日 ⁄ 综合 ⁄ 共 126字 ⁄ 字号 评论关闭
try{
  ...
} finally { 
  ...
  return;
}

应该写成
try{
  ...
} finally { 
  ...
}
return;

不要在finally 里面使用 return 或者 new throw()之类的,否则会引起编译器警告

 

抱歉!评论已关闭.