(轉)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刪除。



猜您在找 編譯報錯 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao Eclipse中使用printf報錯 提示參數類型不對 已解決The method printf(String, Object[]) in the type PrintStream is not ap List 轉String The method format(String, Object[]) in the type String is not applicable for the arguments String 轉 List > The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object) java之List轉List > JAVA克隆對象報錯:The method clone() from the type Object is not visible java JSON 序列化類(List 轉String) String[]轉List
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM