Bravo!! Jason, that was the nastiest code I've ever encountered. I'm very
impressed.

Mac Rinehart, President
Sextant Technology Consulting, Inc

Legal stuff: SEXTANT TECHNOLOGY CONSULTING is a trademark of Sextant
Technology Consulting, Inc. Any agreement to render services by Mac Rinehart
and/or Sextant Technology Consulting, Inc. is contingent upon an agreement
in writing and signed by all interested parties.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason
Dillon
Sent: Friday, April 05, 2002 9:02 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-dev] ProxyCompiler bug fixed


I finished writting tests for the ProxyCompiler, which test that it can
generate proxy objects for various interfaces and abstract classes with
methods.  In the process of write those tests I found another bug, which
then took me most of today to fix.  I now know more about VM byte code
than I had expected to ever know... give me a high level abstraction
over a set of registers and funny names operators any day *sigh*.

I did put in some trace logging for
org.jboss.proxy.compiler.ProxyCompiler, so if you turn on trace there
you will see some information about the generated proxy classes.  I also
added a org.jboss.proxy.compiler.ProxyCompiler.dumpPath system property,
which when set will be used as the directory to dump the generated byte
code into.  So, if you set this to say /tmp, then you will find .class
files there for the generated proxies.  This value is only checked when
the ProxyCompiler loads, so if you need to enabled this do it on the
JBoss command line.

To help keep this system maintainable, I removed some of the older proxy
classes which are unused.  Currently only ProxyAssembler is being used,
for IIOP proxy stubs, which will hopefully change to either
ProxyCompiler or to direct BCEL.

BCEL is really amazing, how it lets you write bytecode, but it is a
bitch to debug with out a decent understanding for how that crap works
or at least some good comments.  So, I tried to comment the parts I had
trouble with, hoping that next time it won't take 3 days to fix a small
bug like this again.

I think that this stuff should really move to common, under
org.jboss.util.proxy... but I am not too motivated to move them right
now... perhaps later.

=)

--jason


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development
BEGIN:VCARD
VERSION:2.1
N:Rinehart;Mac;;President
FN:Mac Rinehart
ORG:Sextant Technology Consulting
TITLE:President
TEL;WORK;VOICE:(503) 251-2855
ADR;WORK:;;7402 SE Yamhill Street;Portland;OR;97215;USA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:7402 SE Yamhill Street=0D=0APortland, OR 97215=0D=0AUSA
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20011008T212138Z
END:VCARD

Reply via email to