I don't quite understand why you want to do this. Can you explain what you mean by : "So i can simulate all IOExceptions without having to think in real files
that would throw this kind of exception."
Unfortunately fragments can't throw an exception. The Java method generated for them don't specify this in their header and you can't modify the generated Java class yourself. It'll just get overwritten by the Probekit editor. I might be able to help you out if you further explain the logic behind what you're doing.
Navid Mehregani
"Alex Soto" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 19/07/2006 09:23 AM
|
|
Hello, i think that everybody has noted that i m betting seriously in
TPTP and Probe Insertion. Ok, the problem now is that i want to simulate
an IOException using probeinsertion. My injected code is as simple as
if(methodname.equals("method")) {
throw new IOException();
}
So i can simulate all IOExceptions without having to think in real files
that would throw this kind of exception. The problem is that the method
_entry doesn't throw any exception so it is impossible to simulate
because the exception isn't propagated. Only adding throws Throwable to
this method, this problem would be required. But if i added manually,
then when i try probekit eclipse editor, an error occurs, and all the
information is deleted. Is there any way to throw specific expcetions in
fragment code? With runtime exception would be great, but for example
IOException extends from Exception.
Thank you very much for your attention.
La información contenida en el presente e-mail es confidencial y está reservada para el uso exclusivo de su destinatario. Se prohíbe estrictamente la distribución, copia o utilización de esta información sin el previo permiso de su destinatario. Si usted no fuera el destinatario, por favor notifíquelo inmediatamente al remitente y elimine el presente mensaje de su sistema informático.
Information contained in this e-mail is confidential and is intended for the use of the addressee only. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you are not the intended addressee, please notify the sender immediately by reply and then delete this message from your computer system.
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev