java: name clash

protected void foo(Map map) throws Exception {
protected void foo(Map<String, Object> model) throws Exception {


Error:(19, 8) java: com.yourdomain.controller.JsonpView is not abstract and does not override abstract method 
renderMergedOutputModel(java.util.Map) in org.springframework.web.servlet.view.AbstractView

Error:(29, 24) java: name clash: 
renderMergedOutputModel(java.util.Map<java.lang.String) 
in com.yourdomain.controller.JsonpView 
and 
renderMergedOutputModel(java.util.Map) 
in org.springframework.web.servlet.view.AbstractView 
have the same erasure, yet neither overrides the other

Error:(28, 9) java: method does not override or implement a method from a supertype

今天還遇到一個很棘手的問題,回頭再討論。java

相關文章
相關標籤/搜索