首页 > 移动平台 > 详细

JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

时间:2019-10-11 00:34:41      阅读:371      评论:0      收藏:0      [点我收藏+]

  平时没怎么注意,今天用Eclipse自动生成Set Get方法时提示错误,错误信息如下:

The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

技术分享图片

 

 原因:

技术分享图片

 

解决方案:将光标定位到类内部自动生成Set、Get即可

 技术分享图片

JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

原文:https://www.cnblogs.com/chenyanbin/p/11651363.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!