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


原因: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 setItems(String) in the type ForTokensTag is not applicable for the arguments (Object) Eclipse中使用printf報錯 提示參數類型不對 已解決The method printf(String, Object[]) in the type PrintStream is not ap JAVA克隆對象報錯:The method clone() from the type Object is not visible List 轉String 報錯:The method encodeBase64String(byte[]) is undefined for the type Base64 String 轉 List > The type Date is ambiguous java之List轉List > Thyemleaf報錯: Method call: Attempted to call method *** on null context object 啟動報錯:Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous map
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM