Skip to content

Commit d97f9e1

Browse files
fixed javax to jakarta & python3
1 parent 111c1d1 commit d97f9e1

File tree

20 files changed

+36
-32
lines changed

20 files changed

+36
-32
lines changed

apache_xmlrpc_common/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
dependencies {
1818
compile 'org.apache.commons:com.springsource.org.apache.commons.httpclient:3.1.0'
1919
compile 'org.apache.ws.commons:ws-commons-util:1.0.1'
20+
implementation('com.sun.xml.bind:jaxb-ri:3.0.2') {
21+
exclude group: 'com.sun.xml.bind', module: 'jaxb-release-documentation'
22+
exclude group: 'com.sun.xml.bind', module: 'jaxb-samples'
23+
}
2024
}
21-

apache_xmlrpc_common/src/main/java/org/apache/xmlrpc/jaxb/JaxbParser.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1515
* KIND, either express or implied. See the License for the
1616
* specific language governing permissions and limitations
17-
* under the License.
17+
* under the License.
1818
*/
1919
package org.apache.xmlrpc.jaxb;
2020

21-
import javax.xml.bind.JAXBContext;
22-
import javax.xml.bind.JAXBException;
23-
import javax.xml.bind.UnmarshallerHandler;
21+
import jakarta.xml.bind.JAXBException;
22+
import jakarta.xml.bind.JAXBContext;
23+
import jakarta.xml.bind.UnmarshallerHandler;
2424

2525
import org.apache.xmlrpc.XmlRpcException;
2626
import org.apache.xmlrpc.parser.ExtParser;

apache_xmlrpc_common/src/main/java/org/apache/xmlrpc/jaxb/JaxbSerializer.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1515
* KIND, either express or implied. See the License for the
1616
* specific language governing permissions and limitations
17-
* under the License.
17+
* under the License.
1818
*/
1919
package org.apache.xmlrpc.jaxb;
2020

21-
import javax.xml.bind.JAXBContext;
22-
import javax.xml.bind.JAXBException;
21+
import jakarta.xml.bind.JAXBException;
22+
import jakarta.xml.bind.JAXBContext;
2323

2424
import org.apache.xmlrpc.serializer.ExtSerializer;
2525
import org.xml.sax.Attributes;

apache_xmlrpc_common/src/main/java/org/apache/xmlrpc/jaxb/JaxbTypeFactory.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1515
* KIND, either express or implied. See the License for the
1616
* specific language governing permissions and limitations
17-
* under the License.
17+
* under the License.
1818
*/
1919
package org.apache.xmlrpc.jaxb;
2020

21-
import javax.xml.bind.Element;
22-
import javax.xml.bind.JAXBContext;
21+
import jakarta.xml.bind.Element;
22+
import jakarta.xml.bind.JAXBContext;
2323

2424
import org.apache.ws.commons.util.NamespaceContextImpl;
2525
import org.apache.xmlrpc.common.TypeFactoryImpl;
@@ -35,7 +35,7 @@
3535
*/
3636
public class JaxbTypeFactory extends TypeFactoryImpl {
3737
private final JAXBContext context;
38-
private final JaxbSerializer serializer;
38+
private final JaxbSerializer serializer;
3939

4040
/** Creates a new instance with the given controller and
4141
* JAXB context.

apache_xmlrpc_server/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
dependencies {
1818
compile project(':apache_xmlrpc_common')
1919
compile 'org.apache.commons:com.springsource.org.apache.commons.logging:1.1.1'
20+
implementation('com.sun.xml.bind:jaxb-ri:3.0.2') {
21+
exclude group: 'com.sun.xml.bind', module: 'jaxb-release-documentation'
22+
exclude group: 'com.sun.xml.bind', module: 'jaxb-samples'
23+
}
2024
}
21-

apache_xmlrpc_server/src/main/java/org/apache/xmlrpc/metadata/Util.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1515
* KIND, either express or implied. See the License for the
1616
* specific language governing permissions and limitations
17-
* under the License.
17+
* under the License.
1818
*/
1919
package org.apache.xmlrpc.metadata;
2020

@@ -42,13 +42,13 @@ public class Util {
4242
static {
4343
Class c;
4444
try {
45-
c = Class.forName("javax.xml.bind.Element");
45+
c = Class.forName("jakarta.xml.bind.Element");
4646
} catch (ClassNotFoundException e) {
4747
c = null;
4848
}
4949
jaxbElementClass = c;
5050
}
51-
51+
5252
/** Returns a signature for the given return type or
5353
* parameter class.
5454
* @param pType The class for which a signature is being
@@ -122,7 +122,7 @@ public static String[][] getSignature(Method[] pMethods) {
122122
* @return Signature string, or null, if no signature
123123
* is available.
124124
*/
125-
public static String[] getSignature(Method pMethod) {
125+
public static String[] getSignature(Method pMethod) {
126126
Class[] paramClasses = pMethod.getParameterTypes();
127127
String[] sig = new String[paramClasses.length + 1];
128128
String s = getSignatureType(pMethod.getReturnType());

docs/src/main/sphinx/installing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ROS Installation
3737

3838
If you would like a full ros environment backending your installation (you might
3939
be generating code for your own custom messages, sequencing builds of multiple rosjava
40-
repositories or using mixed packages, e.g. java + python) then refer to the `RosWiki`_
40+
repositories or using mixed packages, e.g. java + python3) then refer to the `RosWiki`_
4141
for more details.
4242

4343
.. _RosWiki: http://wiki.ros.org/rosjava

docs/src/main/sphinx/javadoc.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ def make_javadoc_link(name, rawtext, text, lineno, inliner, options={}, content=
3434
def setup(app):
3535
app.add_config_value('javadoc_root', None, 'env')
3636
app.add_role('javadoc', make_javadoc_link)
37-

package.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
<build_depend>sensor_msgs</build_depend>
2020
<build_depend>tf2_msgs</build_depend>
2121

22-
<!--
22+
<!--
2323
If genjava becomes official, drop rosjava_messages and depend directly.
2424
Currently only required to ensure deb builds generate the reqd artifacts
2525
-->
2626
<build_depend>rosjava_messages</build_depend>
2727
</package>
28-

rosjava/test/composite_publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from ros import rospy
33
from ros import rosjava_test_msgs
44
import rosjava_test_msgs.msg

rosjava/test/int64_publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from ros import rospy
33
from ros import std_msgs
44
import std_msgs.msg

rosjava/test/string_publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from ros import rospy
33
from ros import std_msgs
44
import std_msgs.msg

rosjava/test/test_composite_passthrough.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Software License Agreement (BSD License)
33
#
44
# Copyright (c) 2011, Willow Garage, Inc.

rosjava/test/test_int64_passthrough.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Software License Agreement (BSD License)
33
#
44
# Copyright (c) 2011, Willow Garage, Inc.

rosjava/test/test_parameter_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Software License Agreement (BSD License)
33
#
44
# Copyright (c) 2011, Willow Garage, Inc.

rosjava/test/test_string_passthrough.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Software License Agreement (BSD License)
33
#
44
# Copyright (c) 2011, Willow Garage, Inc.

rosjava/test/test_testheader_passthrough.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Software License Agreement (BSD License)
33
#
44
# Copyright (c) 2011, Willow Garage, Inc.

rosjava/test/testheader_publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from ros import rospy
33
from ros import rosjava_test_msgs
44
import rosjava_test_msgs.msg

rosjava_benchmarks/scripts/pubsub_benchmark.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
#
33
# Copyright (C) 2012 Google Inc.
44
#

rosjava_test/scripts/serialized_message.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
#
33
# Copyright (C) 2012 Google Inc.
44
#

0 commit comments

Comments
 (0)