when creating a Webservice, can I somehow use static String vars?
@WebService(
portName = Util.PORT,
serviceName = Util.SERVICE,
targetNamespace = ...,
endpointInterface = ...)
public class MyWsClass implements WsInterface
result:
The value for annotation attribute WebService.portName must be a constant expression
So can’t I use static vars?
relevant SO question: How to supply value to an annotation from a Constant java
It is possible to set the annotation parameter values from constants if they are Strings or numbrs and declared as static final.