[ 
https://issues.apache.org/jira/browse/CAMEL-12027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298057#comment-16298057
 ] 

ASF GitHub Bot commented on CAMEL-12027:
----------------------------------------

onders86 closed pull request #2152: CAMEL-12027 - removal of import 
org.openmuc.jasn1.ber.BerByteArrayOut…
URL: https://github.com/apache/camel/pull/2152
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/components/camel-asn1/src/main/java/org/apache/camel/dataformat/asn1/ASN1DataFormat.java
 
b/components/camel-asn1/src/main/java/org/apache/camel/dataformat/asn1/ASN1DataFormat.java
index 446ea4cad57..5b2d270b829 100644
--- 
a/components/camel-asn1/src/main/java/org/apache/camel/dataformat/asn1/ASN1DataFormat.java
+++ 
b/components/camel-asn1/src/main/java/org/apache/camel/dataformat/asn1/ASN1DataFormat.java
@@ -32,7 +32,7 @@
 import org.apache.camel.util.ObjectHelper;
 import org.bouncycastle.asn1.ASN1InputStream;
 import org.bouncycastle.asn1.ASN1Primitive;
-import org.openmuc.jasn1.ber.BerByteArrayOutputStream;
+import org.openmuc.jasn1.ber.ReverseByteArrayOutputStream;
 
 public class ASN1DataFormat extends ServiceSupport implements DataFormat, 
DataFormatName {
     private boolean usingIterator;
@@ -87,8 +87,8 @@ public void marshal(Exchange exchange, Object graph, 
OutputStream stream) throws
     private void encodeGenericTypeObject(Exchange exchange, Class<?> clazz, 
OutputStream stream)
         throws NoSuchMethodException, SecurityException, 
IllegalAccessException, IllegalArgumentException, InvocationTargetException, 
IOException {
         Class<?>[] paramOut = new Class<?>[1];
-        paramOut[0] = BerByteArrayOutputStream.class;
-        BerByteArrayOutputStream berOut = new 
BerByteArrayOutputStream(IOHelper.DEFAULT_BUFFER_SIZE / 256, true);
+        paramOut[0] = OutputStream.class;
+        ReverseByteArrayOutputStream berOut = new 
ReverseByteArrayOutputStream(IOHelper.DEFAULT_BUFFER_SIZE / 256, true);
         Method encodeMethod = 
exchange.getIn().getBody().getClass().getDeclaredMethod("encode", paramOut);
         encodeMethod.invoke(exchange.getIn().getBody(), berOut);
         stream.write(berOut.getArray());
diff --git a/parent/pom.xml b/parent/pom.xml
index b869ac6db3a..a10c922e054 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -333,7 +333,7 @@
     <jackrabbit-version>2.16.0</jackrabbit-version>
     <jackrabbit-guava-version>15.0</jackrabbit-guava-version>
     <jain-sip-ri-bundle-version>1.2.154_2</jain-sip-ri-bundle-version>
-    <jasn1-version>1.8.2</jasn1-version>
+    <jasn1-version>1.9.0</jasn1-version>
     <jasper-bundle-version>6.0.44_1</jasper-bundle-version>
     <jasypt-bundle-version>1.9.2_1</jasypt-bundle-version>
     <jasypt-version>1.9.2</jasypt-version>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> camel-asn1 - removal of import org.openmuc.jasn1.ber.BerByteArrayOutputStream 
> from encode method's param and upgrade jasn1
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12027
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12027
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Önder Sezgin
>            Assignee: Önder Sezgin
>            Priority: Minor
>             Fix For: 2.21.0
>
>
> https://github.com/openmuc/jasn1/issues/2



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to