summaryrefslogtreecommitdiff
path: root/tomcat-10.1-bnd-annotation.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-27 07:38:26 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-27 07:38:26 +0000
commitccc3badf8e850615abe7c93c8badb9d5e027c854 (patch)
treebb465c2ac15156a59563b3c2b6aaf62285698283 /tomcat-10.1-bnd-annotation.patch
parentb2c2e545b019af5753f7935a994902010c220df3 (diff)
automatic import of tomcat10.1.54openeuler24.03_LTS_SP3
Diffstat (limited to 'tomcat-10.1-bnd-annotation.patch')
-rw-r--r--tomcat-10.1-bnd-annotation.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/tomcat-10.1-bnd-annotation.patch b/tomcat-10.1-bnd-annotation.patch
new file mode 100644
index 0000000..320692f
--- /dev/null
+++ b/tomcat-10.1-bnd-annotation.patch
@@ -0,0 +1,57 @@
+--- a/java/org/apache/el/ExpressionFactoryImpl.java
++++ b/java/org/apache/el/ExpressionFactoryImpl.java
+@@ -31,7 +31,8 @@
+ /**
+ * @see jakarta.el.ExpressionFactory
+ */
+-@aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class)
++// aQute.bnd.annotation.spi is not available in the distribution bnd version
++// @aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class)
+ public class ExpressionFactoryImpl extends ExpressionFactory {
+
+ static {
+--- a/java/org/apache/juli/logging/LogFactory.java
++++ b/java/org/apache/juli/logging/LogFactory.java
+@@ -21,7 +21,8 @@
+ import java.util.ServiceLoader;
+ import java.util.logging.LogManager;
+
+-import aQute.bnd.annotation.spi.ServiceConsumer;
++// aQute.bnd.annotation.spi is not available in the distribution bnd version
++// import aQute.bnd.annotation.spi.ServiceConsumer;
+
+ /**
+ * This is a modified LogFactory that uses a simple {@link ServiceLoader} based discovery mechanism with a default of
+@@ -50,7 +51,7 @@
+ * <strong>IMPLEMENTATION NOTE</strong> - This implementation is heavily based on the SAXParserFactory and
+ * DocumentBuilderFactory implementations (corresponding to the JAXP pluggability APIs) found in Apache Xerces.
+ */
+-@ServiceConsumer(value = Log.class)
++// @ServiceConsumer(value = Log.class)
+ public class LogFactory {
+
+ private static final LogFactory singleton = new LogFactory();
+--- a/java/org/apache/tomcat/websocket/WsContainerProvider.java
++++ b/java/org/apache/tomcat/websocket/WsContainerProvider.java
+@@ -19,7 +19,8 @@
+ import jakarta.websocket.ContainerProvider;
+ import jakarta.websocket.WebSocketContainer;
+
+-@aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class)
++// aQute.bnd.annotation.spi is not available in the distribution bnd version
++// @aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class)
+ public class WsContainerProvider extends ContainerProvider {
+
+ @Override
+--- a/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
++++ b/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
+@@ -26,7 +26,8 @@
+ import jakarta.websocket.server.HandshakeRequest;
+ import jakarta.websocket.server.ServerEndpointConfig;
+
+-@aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class)
++// aQute.bnd.annotation.spi is not available in the distribution bnd version
++// @aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class)
+ public class DefaultServerEndpointConfigurator extends ServerEndpointConfig.Configurator {
+
+ @Override