SHA256
1
0
forked from pool/ws-jaxme
ws-jaxme/ws-jaxme-0.5.2-proxygenerator.patch

23 lines
984 B
Diff

--- ws-jaxme-0.5.2/src/js/org/apache/ws/jaxme/js/pattern/CompiledClassReflector.java 2005-07-28 21:47:58.000000000 +0200
+++ ws-jaxme-0.5.2/src/js/org/apache/ws/jaxme/js/pattern/CompiledClassReflector.java 2017-10-06 17:25:25.213569086 +0200
@@ -34,18 +34,7 @@
* {@link JavaSource}.</p>
*/
protected JavaMethod getMethod(JavaSource pSource, Method pMethod) {
- JavaMethod method = pSource.newJavaMethod(pMethod.getName(),
- JavaQNameImpl.getInstance(pMethod.getReturnType()),
- JavaSource.PUBLIC);
- Class[] classes = pMethod.getParameterTypes();
- for (int i = 0; i < classes.length; i++) {
- method.addParam(classes[i], "arg" + i);
- }
- Class[] exceptions = pMethod.getExceptionTypes();
- for (int i = 0; i < exceptions.length; i++) {
- method.addThrows(exceptions[i]);
- }
- return method;
+ return pSource.newJavaMethod(pMethod);
}
/** Returns the compiled class being used to gather information.