jakarta-bcel-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Smallbone" <andrew.smallb...@iee.org>
Subject Re: wrapping native methods
Date Mon, 07 Oct 2002 17:08:51 GMT

>> This may be a stupid question, but is it possible to
>> use BCEL to wrap> a native method?
> In what sense?

I mean insert java code that will run before and/or after the native
method executes.
For time related testing of our system I'd like to fool it to think
its running in the future, I wondered if BCEL could be used to modify
the value returned by java.lang.System.currentTimeMillis();
transparently to the rest of the program

> You can't modify system classes

Is this true if I used something like the JavaWrapper example class to
replace the class loader for the application?


Andrew Smallbone <andrew.smallbone@iee.org>

To unsubscribe, e-mail:   <mailto:bcel-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-user-help@jakarta.apache.org>

View raw message