I am working with Java javax.ws.rs.Path and I am getting the path from the properties. Even though the constant is final static I am the getting Attribute must be constant issue.
This is my how I am getting the value of my constant:
public static final String ENDPOINT_GET =ConfigurationProperties.getInstance().getProperty("someProperty");}
This is the method Implementation:
public String getProperty(String name) {
return properties.getProperty(name);
}
But I got this issue, in the other hand if I put this constant in the class directly I don't have this issue.
Any idea?