type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang.Object

type parameters of <T>T cannot be determined; 
  no unique maximal instance exists for type variable T with 
  upper bounds int,java.lang.Object
错误解决方法,
经过查询 必应,
是因为使用类似下面的代码,maven编译不通过
public T getObject() { return get(OBJECT); }
,改为
public T getObject() {
        return (T)get(OBJECT); 
}
即可
posted on 2014-07-24 09:55  xiong2012  阅读(583)  评论(0编辑  收藏  举报