This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 3fc0c3d Skip interfaces for HandlesTypes
3fc0c3d is described below
commit 3fc0c3d395cd3b3c01f9c4fbb8cd47cb3b36c276
Author: remm <[email protected]>
AuthorDate: Tue Apr 20 15:54:17 2021 +0200
Skip interfaces for HandlesTypes
BZ 65256.
Although a bit unclear in the specification, I don't see a use for
returning interfaces.
---
java/org/apache/catalina/startup/ContextConfig.java | 7 ++++---
webapps/docs/changelog.xml | 4 ++++
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/catalina/startup/ContextConfig.java
b/java/org/apache/catalina/startup/ContextConfig.java
index 058d412..b57ceda 100644
--- a/java/org/apache/catalina/startup/ContextConfig.java
+++ b/java/org/apache/catalina/startup/ContextConfig.java
@@ -2383,9 +2383,10 @@ public class ContextConfig implements LifecycleListener {
return;
}
- if ((javaClass.getAccessFlags() &
- org.apache.tomcat.util.bcel.Const.ACC_ANNOTATION) != 0) {
- // Skip annotations.
+ if ((javaClass.getAccessFlags()
+ & (org.apache.tomcat.util.bcel.Const.ACC_ANNOTATION
+ | org.apache.tomcat.util.bcel.Const.ACC_INTERFACE)) !=
0) {
+ // Skip annotations or interfaces
return;
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index dc81afa..900f782 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -129,6 +129,10 @@
resulting in one of the deployments failing and errors being reported.
(markt)
</fix>
+ <fix>
+ <bug>65256</bug>: HandlesTypes class sets should not include
+ interfaces. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]