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 月 10 日
- 筆記
平時沒怎麼注意,今天用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即可