You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/11 17:56:04 UTC
[camel] branch main updated (7ef576abbec -> d94745ccbc2)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
from 7ef576abbec Upgrade glashfish
new 93eb390dfd9 Upgrade javassist
new d94745ccbc2 Fix compiler warning
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java | 6 +++---
parent/pom.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
[camel] 02/02: Fix compiler warning
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit d94745ccbc24c86c5c535f3d40418ace378bb669
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jul 11 19:54:37 2023 +0200
Fix compiler warning
---
.../java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java b/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
index f825bdcfe88..6df290de152 100644
--- a/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
+++ b/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
@@ -186,14 +186,14 @@ public class ThriftDataFormat extends ServiceSupport
Class<?> instanceClass = context.getClassResolver().resolveMandatoryClass(className);
if (TBase.class.isAssignableFrom(instanceClass)) {
try {
- return (TBase) instanceClass.newInstance();
+ return (TBase) instanceClass.getDeclaredConstructor().newInstance();
} catch (final Exception ex) {
throw new CamelException(
- "Can't set the defaultInstance of ThriftDataFormat with " + className + ", caused by " + ex);
+ "Cannot set the defaultInstance of ThriftDataFormat with " + className + ", caused by " + ex);
}
} else {
throw new CamelException(
- "Can't set the defaultInstance of ThriftDataFormat with " + className
+ "Cannot set the defaultInstance of ThriftDataFormat with " + className
+ ", as the class is not a subClass of org.apache.thrift.TBase");
}
}
[camel] 01/02: Upgrade javassist
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 93eb390dfd91b5d9ddf8a667fec6bc625f3ffafc
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jul 11 19:52:18 2023 +0200
Upgrade javassist
---
parent/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parent/pom.xml b/parent/pom.xml
index 33d96c2feb3..ad4306678b7 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -242,7 +242,7 @@
<javacrumbs-version>0.22</javacrumbs-version>
<javaparser-version>3.13.10</javaparser-version>
<javapoet-version>1.13.0</javapoet-version>
- <javassist-version>3.28.0-GA</javassist-version>
+ <javassist-version>3.29.2-GA</javassist-version>
<javax-el3-version>3.0.0</javax-el3-version>
<jakarta-el-api-hibernate-validator-version>5.0.1</jakarta-el-api-hibernate-validator-version>
<jakarta-el-expressly-version>5.0.0</jakarta-el-expressly-version>