-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support servlet 2.5 for Jetty,Tomcat,SpringMvc #3120
Conversation
@@ -42,4 +43,16 @@ public static String generateOperationName(Method method) { | |||
operationName.append(")"); | |||
return operationName.toString(); | |||
} | |||
|
|||
|
|||
public static boolean isGetStatusExist(ClassLoader classLoader) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an util, the class name should be parameter, right?
|
||
public static boolean isMethodExist(ClassLoader classLoader, String className, String methodName, Class<?>... parameterTypes) { | ||
try { | ||
Class<?> httpServletResponse = Class.forName(className, true, classLoader); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong variable name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter type should be String if class name is string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,I forgot update
Add a comment to the new core util method. @candyleer I am concerning this method will be used widely even unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
SpringMVC plugin not support servlet-api-2.5 #2975
Bug fix
Bug description.
How to fix?
New feature or improvement