On 7 October 2010 19:10, Jochen Theodorou <[email protected]> wrote:
> Alessio Stalla wrote:
>>
>> On Thu, Oct 7, 2010 at 7:44 PM, Jochen Theodorou <[email protected]>
>> wrote:
>
> [...]
>>
>> How did you try to reproduce the problem in Java? What does javac
>> produce for your code? I remember having a vaguely similar problem,
>> but it involved reflection and private inner classes, and you don't
>> seem to be using any of those.
>
> I did not try to insert the constructor call as of yet. I mostly tried
> variants of the groovy code in Java, one time forced the CHECKCAST call,
> since I thought this is the culprit. but no success.
>
> javac produces:
>
>    NEW G4410JavaStringProducer
>    DUP
>    INVOKESPECIAL G4410JavaStringProducer.<init> ()V
>    ASTORE 2


You might try this Java

Object o = new G4410JavaStringProducer();
G4410JavaStringProducer jsp = (G4410JavaStringProducer)o;

   John Wilson

-- 
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to