On Thu, Oct 7, 2010 at 7:44 PM, Jochen Theodorou <[email protected]> wrote: > Jochen Theodorou wrote: > [...] >> >> If I change the program to >> >> def jsp = new G4410JavaStringProducer() >> >> then the CHECKCAST and the castToType call will not in there and the error >> vanishes as well... > > funny thing is... if I change the code to > > G4410JavaStringProducer jsp = null > > then the castToType call and CHECKCAST are still in, but I get no error. > This time the constructor call is missing.... wtf?
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. Cheers, Alessio -- 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.
