Knut Wannheden wrote:
David,
On 5/25/05, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:
Hmm, HM1.1 is still beta stuff - and I need a very stable
production-ready API. How many more betas?
So I went for the try/catch, but I still get a source-error - "no return
statement". BodyBuilder toString():
{
com.jamonapi.Monitor mon =
com.jamonapi.MonitorFactory.start("sendAndReceive");
try {
Object result = _delegate.sendAndReceive($$);
mon.stop();
return ($r) result;
}
catch (Throwable t){
if (mon!=null) mon.stop();
throw t;
};
}
Hmm, maybe that's another Javassist bug. Try removing that last
semicolon (after the '}')...
Didn't help. I moved the return statement to after the catch block - now
it works. Like this:
com.jamonapi.Monitor mon =
com.jamonapi.MonitorFactory.start("sendAndReceive");
Object result = null;
try {
result = _delegate.sendAndReceive($$);
mon.stop();
}
catch (Throwable t){
if (mon!=null) mon.stop();
throw t;
};
return ($r) result;
I'm not too convinced over javassist. Will you concider CGlib or ASM
instead?
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]