(轉)eclipse 報錯 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao


背景:在開發過程中,經常遇到各種各樣的編譯問題,不斷的總結,才能更好的提高效率。

描述

【報錯】 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK>

 

【解決】:

 

原因:eclipse 的個bug,具體見http://stackoverflow.com/questions/10852923/method-is-ambiguous-for-the-type-but-the-types-are-not-ambigues-and-the-error 

解決方法:

在eclipse.ini -vmargs后面添加  -DtolerateIllegalAmbiguousVarargsInvocation=true ;

重啟eclipse,並clean一下項目 重新編譯即可。


免責聲明!

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



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