[Kde-java] QtJava api via Dynamic Proxies progress - part 1
Marco Ladermann
Marco.Ladermann at gmx.de
Wed Aug 20 21:37:19 CEST 2003
Hi Richard,
On Wednesday 20 August 2003 05:36, Richard Dale wrote:
> I've got kalyptus correctly auto-generating the QtJava sources so that they
> compile without error, all 60000 lines! So there shouldn't be any need to
> put the autogenerated code in the cvs anymore, it can be generated on
> demand.
Just tried your modifications. Long time ago I looked at Perl code ;-)
It took me some time to figure out that one has to delete the "2" from the
package name in kalyptusCxxToJava.pm to get it work, but after that little
change everything worked fine! Very cool.
One question: Why are you using the system classloader in the proxy creation
statement? I'm not sure, but this could lead to problems with environments
that use their own classloader (e.g. WebStart) to load classes dynamically.
If the system classloader is hard coded, classes would not be found in such
libraries. May be its better to use:
public class Qxxx ... {
...
static {
_static_proxy = Proxy.newProxyInstance(Qxxx.class.getClassLoader(),
new Class[] { ... },
new SmokeInvocation() );
}
...
}
--
Marco
More information about the Kde-java
mailing list