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


The following commit(s) were added to refs/heads/master by this push:
     new c7f877d  CAMEL-15324 Camel-as2 can fail on jdk8 because of 
java.lang.NoSuchMethodError: java.nio.CharBuffer (#4031)
c7f877d is described below

commit c7f877db1773aeefcb5869992befb1bd5a3d9b47
Author: JiriOndrusek <[email protected]>
AuthorDate: Wed Jul 22 13:36:17 2020 +0200

    CAMEL-15324 Camel-as2 can fail on jdk8 because of 
java.lang.NoSuchMethodError: java.nio.CharBuffer (#4031)
---
 .../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;
     }
 

Reply via email to