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.

  平时没怎么注意,今天用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即可

 

版权声明:本文为chenyanbin原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/chenyanbin/p/11651363.html