You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/07/22 12:04:22 UTC
[camel] branch camel-3.4.x updated: CAMEL-15324 Camel-as2 can fail
on jdk8 because of java.lang.NoSuchMethodError: java.nio.CharBuffer
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.4.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.4.x by this push:
new 0fcd0dd CAMEL-15324 Camel-as2 can fail on jdk8 because of java.lang.NoSuchMethodError: java.nio.CharBuffer
0fcd0dd is described below
commit 0fcd0dde1e388f4c151aec083bb25d805a9ea49f
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Wed Jul 22 13:08:13 2020 +0200
CAMEL-15324 Camel-as2 can fail on jdk8 because of java.lang.NoSuchMethodError: java.nio.CharBuffer
---
.../org/apache/camel/component/as2/api/io/AS2SessionInputBuffer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/io/AS2SessionInputBuffer.java b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/io/AS2SessionInputBuffer.java
index ed3b924..78669b3 100644
--- a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/io/AS2SessionInputBuffer.java
+++ b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/io/AS2SessionInputBuffer.java
@@ -328,7 +328,7 @@ public class AS2SessionInputBuffer implements SessionInputBuffer, BufferInfo {
}
final CoderResult result = this.decoder.flush(this.cbuf);
len += handleDecodingResult(result, charbuffer, bbuf);
- this.cbuf.clear();
+ cast(this.cbuf).clear();
return len;
}