背景:在開發過程中,經常遇到各種各樣的編譯問題,不斷的總結,才能更好的提高效率。
描述
【報錯】 :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一下項目 重新編譯即可。