[fpc-devel] Re: JVM: class of XYZ => java.lang.Class

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Dec 25 20:53:35 CET 2011

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.


More information about the fpc-devel mailing list