Не понимаю, что говорит об ошибке. Я реализовал методы, и возвращаемый тип верен.Weird «не абстрактно и не переопределяет абстрактный метод» error
эпопея Ошибка:
[ERROR] /tmp/build_834873cb-62d2-4c62-9b4e-29df7d0af404/src/main/java/com
/project/server/SearchServiceImpl.java:[8,7] error: SearchServiceImpl is not abstract and does not override abstract method getListings(String,String) in SearchService
[ERROR] /tmp/build_834873cb-62d2-4c62-9b4e-29df7d0af404/src/main/java/com
/project/server/SearchServiceImpl.java:[10,1] error: method does not override or implement a method from a supertype
SearchService интерфейс:
package com.project.client.rpcinterfaces;
@RemoteServiceRelativePath("searchservice")
public interface SearchService extends RemoteService{
ArrayList<ListingInterface> getListings(String userName, String idHash);
}
Реализация:
@Service(value="searchservice")
public class SearchServiceImpl implements SearchService{
@Autowired
private ApplicationContext ctx;
@Override
public ArrayList<ListingInterface> getListings(String userName, String idHash) {
UserItemsImpl userItems = ctx.getBean(UserItemsImpl.class);
ArrayList<ListingInterface> listingsList = userItems.getListings(userName, idHash);
return listingsList;
}
}
ListingInterface:
public interface ListingInterface{
public List<TermsSearchResultInterface> getSearchResults();
/*
* Returns the indexed search result
*/
public TermsSearchResultInterface getSearchResult(int index);
public String getTitle();
public void setTitle(String title);
public String[] getTags();
public void setSearchResults(List<TermsSearchResultInterface> searchResults);
public void setTags(String[] tags);
public String getListingId();
public void setListingId(String listingId);
public List<String> getExcludedTerms();
public void setExcludedTerms(List<String> excludedTerms);
}
Программа работает правильно в режиме Dev. Только когда я пытаюсь загрузить его на Heroku.com, тогда maven начинает Ошибка :)
Провел несколько часов на этом. Если бы вы могли дать мне указания, что не так, это будет большой помощью, спасибо! :)
принять ваш ответ, чтобы закрыть этот вопрос – Onkar
Не могу принять так быстро. Приходится ждать 2 дня. :) –