SHA256
1
0
forked from pool/ws-jaxme
Fridrich Strba 2017-10-06 15:34:58 +00:00 committed by Git OBS Bridge
parent 8865e0afcf
commit 0bdf4aea56
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,22 @@
--- 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.

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Oct 6 15:33:05 UTC 2017 - fstrba@suse.com
- Allow building with jdk9
- Attached patch:
* ws-jaxme-0.5.2-proxygenerator.patch
- Generate correctly proxies even if the interface has static
methods that are allowed in jdk8+
-------------------------------------------------------------------
Tue Sep 12 06:58:17 UTC 2017 - fstrba@suse.com

View File

@ -30,6 +30,7 @@ Patch1: ws-jaxme-catalog.patch
Patch2: ws-jaxme-java6.patch
Patch3: ws-jaxme-sourcetarget.patch
Patch4: ws-jaxme-use-commons-codec.patch
Patch5: ws-jaxme-0.5.2-proxygenerator.patch
BuildRequires: ant >= 1.6
BuildRequires: ant-apache-resolver
BuildRequires: antlr
@ -47,7 +48,6 @@ BuildRequires: xml-commons-apis
BuildRequires: xml-commons-resolver
BuildRequires: xmldb-api
BuildArch: noarch
BuildConflicts: java-devel >= 1.9
%description
A Java/XML binding compiler takes as input a schema description (in
@ -107,6 +107,7 @@ find . -name "*.jar" | xargs rm
%patch2 -b .java6
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"