The NoClassDefFoundError bug is back :(

Rémi Forax forax at univ-mlv.fr
Thu Dec 8 12:16:12 PST 2011


On 12/08/2011 06:58 PM, Charles Oliver Nutter wrote:
> I just had a report of the same error in 1.7.0GA, and I saw it on the
> CI server last night after I set up a 1.7.0_01 build. Did it linger
> into GA?
>
> http://ci.jruby.org/job/jruby-test-matrix/jdk=sun-java-7,label=master/406/console
>
> On Tue, Dec 6, 2011 at 3:52 AM, Rémi Forax<forax at univ-mlv.fr>  wrote:
>> I've forget to say that a workaround is to erase the type used the callsite
>> before calling dynamicInvoker().
> Can you elaborate on this? I'm not using dynamicInvoker...I bind the
> site and use invokeWithArguments. Are you saying I could insert an
> asType() that clears everything to Object?

invokeWithArguments uses foldArgument and a generic invoker
that maybe why you see the same error.

about asType(), the idea is to erase the type before calling 
invokeWithArguments
instead of
   mh.invokeWithArgument(args);
you can use
   mh.asType(mh.type().erase()).invokeWithArguments(args);

and I have no idea if it works and about the perf cost if there is a cost.

>
> If so, would that introduce overhead?
>
> - Charlie

Rémi



More information about the mlvm-dev mailing list