Skip to content

Commit

Permalink
Fix ASN1::Constructive#to_der failure with updated bc jars.
Browse files Browse the repository at this point in the history
DEREncodableVector is superceded by ASN1EncodableVector. Update it.
  • Loading branch information
Hiroshi Nakamura committed Apr 26, 2011
1 parent 6f728dc commit 59dd58a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/java/org/jruby/ext/openssl/ASN1.java
Expand Up @@ -47,7 +47,6 @@
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERBitString;
import org.bouncycastle.asn1.DERBoolean;
import org.bouncycastle.asn1.DEREncodableVector;
import org.bouncycastle.asn1.DERInteger;
import org.bouncycastle.asn1.DERNull;
import org.bouncycastle.asn1.DERObjectIdentifier;
Expand Down Expand Up @@ -904,7 +903,7 @@ ASN1Encodable toASN1() {
}
try {
@SuppressWarnings("unchecked")
ASN1Encodable result = ((Class<? extends ASN1Encodable>) (ASN1_INFO[id][1])).getConstructor(new Class[] { DEREncodableVector.class })
ASN1Encodable result = ((Class<? extends ASN1Encodable>) (ASN1_INFO[id][1])).getConstructor(new Class[] { ASN1EncodableVector.class })
.newInstance(new Object[] { vec });
return result;
} catch (Exception e) {
Expand Down

0 comments on commit 59dd58a

Please sign in to comment.