报错 :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK>

来源:互联网 发布:淘宝店铺搬迁说明 编辑:程序博客网 时间:2024/05/20 07:33

【报错】 :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一下项目 重新编译即可。


1 0
原创粉丝点击