mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Two fixes:
* Consider that the @WebService annotation (et al) can be in a supertype or interface * getARemoteMethod should only return public methods, since protected, package-private, and private methods are not exposed
This commit is contained in:
@@ -11,27 +11,27 @@ import javax.xml.ws.WebServiceProvider;
|
||||
class WebServiceClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
String unacceptableParamType(File param) { // not an endpoint
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
File unacceptableReturnType() { // not an endpoint
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -41,27 +41,27 @@ class WebServiceClass { // $ JaxWsEndpoint
|
||||
class WebServiceProviderClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
String unacceptableParamType(File param) { // not an endpoint
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
File unacceptableReturnType() { // not an endpoint
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -71,27 +71,27 @@ class WebServiceProviderClass { // $ JaxWsEndpoint
|
||||
class WebServiceClientClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
String unacceptableParamType(File param) { // not an endpoint
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
File unacceptableReturnType() { // not an endpoint
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user