(转)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删除。