Код: Выделить всё
public interface GenericWSEndpoint {
public void call(String url,String operationName, T1 requestObject, T2 responseObject,long timeout) throws Exception;
}
org .apache.maven.BuildFailureException: ошибка компиляции:
несовместимые типы
Определение объекта:
Код: Выделить всё
private static GenericWSEndpoint endpoint=GenericWsEndpointFactory.createSpecificEndpoint(WSTypes.CXF);
Код: Выделить всё
public class GenericWsEndpointFactory{
public static GenericWSEndpoint createSpecificEndpoint(WSTypes type){
switch (type) {
case CXF:
return new CXFWsEndPoint();
}
return null;
}
}
Код: Выделить всё
public class CXFWsEndPoint implements GenericWSEndpoint{
.
.
}
Есть идеи?
EDIT: Исключение:
[INFO] Ошибка компиляции
ResponseManager\src\main\java\com\x\resman\util\WebServiceUtil.java:[57,142]
несовместимые типы; экземпляров переменных типа T1,T2 не существует, поэтому
что com.x.rbm.ws.service.GenericWSEndpoint соответствует
com.x.rbm.ws.service.GenericWSEndpoint найдено: com.x.rbm.ws.service.GenericWSEEndpoint требуется:
com.x.rbm.ws.service.GenericWSEndpointequest,com.x.resman.model.checkblockage.BulkCheckBlockageResponse>
Подробнее здесь: https://stackoverflow.com/questions/175 ... erics-type
Мобильная версия