This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit e726e3ae174d8ea3e2d55835b444538f8aa3cbcc Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Dec 21 08:31:16 2020 +0100 Camel-Milo: Make tests works with JDK 16-ea --- .../java/org/apache/camel/component/milo/AbstractMiloServerTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java b/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java index d28914f..1d2fc63 100644 --- a/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java +++ b/components/camel-milo/src/test/java/org/apache/camel/component/milo/AbstractMiloServerTest.java @@ -141,7 +141,9 @@ public abstract class AbstractMiloServerTest extends CamelTestSupport { if (dot != -1) { version = version.substring(0, dot); } - if (Integer.parseInt(version) >= requiredVersion) { + if (version.equalsIgnoreCase("16-ea")) { + return true; + } else if (Integer.parseInt(version) >= requiredVersion) { return true; } }
