You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/07/21 07:37:24 UTC
[avro] branch master updated: AVRO-3581: Fix Velocity configuration warnings by changing to new cofigs since the old ones were deprecated. (#1773)
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 9c144131f AVRO-3581: Fix Velocity configuration warnings by changing to new cofigs since the old ones were deprecated. (#1773)
9c144131f is described below
commit 9c144131f1887a69221e5b30101ed890c214c277
Author: Luan Kevin Ferreira <lu...@gmail.com>
AuthorDate: Thu Jul 21 03:37:19 2022 -0400
AVRO-3581: Fix Velocity configuration warnings by changing to new cofigs since the old ones were deprecated. (#1773)
---
.../ipc/src/main/java/org/apache/avro/ipc/stats/StatsServlet.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lang/java/ipc/src/main/java/org/apache/avro/ipc/stats/StatsServlet.java b/lang/java/ipc/src/main/java/org/apache/avro/ipc/stats/StatsServlet.java
index d12bafe21..38c0bb2fe 100644
--- a/lang/java/ipc/src/main/java/org/apache/avro/ipc/stats/StatsServlet.java
+++ b/lang/java/ipc/src/main/java/org/apache/avro/ipc/stats/StatsServlet.java
@@ -56,11 +56,11 @@ public class StatsServlet extends HttpServlet {
this.velocityEngine = new VelocityEngine();
// These two properties tell Velocity to use its own classpath-based loader
- velocityEngine.addProperty("resource.loader", "class");
- velocityEngine.addProperty("class.resource.loader.class",
+ velocityEngine.addProperty("resource.loaders", "class");
+ velocityEngine.addProperty("resource.loader.class.class",
"org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
- velocityEngine.setProperty("runtime.references.strict", true);
+ velocityEngine.setProperty("runtime.strict_mode.enable", true);
String logChuteName = "org.apache.velocity.runtime.log.NullLogChute";
velocityEngine.setProperty("runtime.log.logsystem.class", logChuteName);
}