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即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM