On 25 Dec 2011, at 18:23, Sven Barth wrote: > Ok, I could simply solve this by doing a typecast > "JLClass(TTrainTypeActivity)",
That's indeed the proper way. > but couldn't the compiler do this automatically? (as this looks a bit unclean > to me...) It completely clean. The better way to solve this would be to modify the javapp parser to generated overloaded versions of routines expecting a JLClass parameter with a version that accepts "class of JLObject" or similar parameters. Jonas_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
