This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push: new d93f10ff77 Fix missing strings d93f10ff77 is described below commit d93f10ff772182bb847fa0ed817ece27344d4498 Author: remm <r...@apache.org> AuthorDate: Tue Apr 5 16:24:04 2022 +0200 Fix missing strings --- java/org/apache/catalina/core/DefaultInstanceManager.java | 4 ++-- java/org/apache/catalina/core/LocalStrings.properties | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/core/DefaultInstanceManager.java b/java/org/apache/catalina/core/DefaultInstanceManager.java index 9557c05270..fd29ce8f87 100644 --- a/java/org/apache/catalina/core/DefaultInstanceManager.java +++ b/java/org/apache/catalina/core/DefaultInstanceManager.java @@ -709,7 +709,7 @@ public class DefaultInstanceManager implements InstanceManager { if (method.getName().equals(methodNameFromXml)) { if (!Introspection.isValidLifecycleCallback(method)) { throw new IllegalArgumentException( - "Invalid " + annotation.getName() + " annotation"); + sm.getString("defaultInstanceManager.invalidAnnotation", annotation.getName())); } result = method; } @@ -717,7 +717,7 @@ public class DefaultInstanceManager implements InstanceManager { if (method.isAnnotationPresent(annotation)) { if (currentMethod != null || !Introspection.isValidLifecycleCallback(method)) { throw new IllegalArgumentException( - "Invalid " + annotation.getName() + " annotation"); + sm.getString("defaultInstanceManager.invalidAnnotation", annotation.getName())); } result = method; } diff --git a/java/org/apache/catalina/core/LocalStrings.properties b/java/org/apache/catalina/core/LocalStrings.properties index 54747cc4a1..9c6d6fa0e2 100644 --- a/java/org/apache/catalina/core/LocalStrings.properties +++ b/java/org/apache/catalina/core/LocalStrings.properties @@ -122,6 +122,7 @@ containerBase.realm.stop=Error stopping old realm containerBase.threadedStartFailed=A child container failed during start containerBase.threadedStopFailed=A child container failed during stop +defaultInstanceManager.invalidAnnotation=Invalid [{0}] annotation defaultInstanceManager.invalidInjection=Invalid method resource injection annotation defaultInstanceManager.postConstructNotFound=Post construct method [{0}] for class [{1}] is declared in deployment descriptor but cannot be found defaultInstanceManager.preDestroyNotFound=Pre destroy method [{0}] for class [{1}] is declared in deployment descriptor but cannot be found --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org