emboss/krypt-core-jruby — Issue #15: Krypt::ASN1::EndOfContents.new causes ClassCastException
Author: nahi
Created: 2012-01-27 03:18:40+00:00
State: open

```
% jruby -Ilib -rkrypt-core -e 'Krypt::ASN1::EndOfContents.new'
Asn1DataClasses$Asn1EndOfContents$INVOKER$i$0$0$initialize.gen:65535:in `call': java.lang.ClassCastException: org.jruby.ext.krypt.asn1.Asn1$Asn1Primitive cannot be cast to org.jruby.ext.krypt.asn1.Asn1DataClasses$Asn1EndOfContents
from JavaMethod.java:671:in `call'
from CachingCallSite.java:302:in `cacheAndCall'
from CachingCallSite.java:144:in `callBlock'
from CachingCallSite.java:148:in `call'
from RubyClass.java:810:in `newInstance'
from MethodHandle.java:566:in `invokeWithArguments'
from InvocationLinker.java:146:in `invocationFallback'
from -e:1:in `__file__'
from -e:-1:in `load'
from Ruby.java:754:in `runScript'
from Ruby.java:747:in `runScript'
from Ruby.java:638:in `runNormally'
from Ruby.java:487:in `runFromMain'
from Main.java:350:in `doRunFromMain'
from Main.java:262:in `internalRun'
from Main.java:228:in `run'
from Main.java:212:in `run'
from Main.java:192:in `main'
```