[concurrency-interest] Cancellation convention

Dhanji R. Prasanna dhanji at gmail.com
Thu Jun 8 19:38:57 EDT 2006


> > java.net.SocketStream.class.equals(stackTrace[i])
>
> I don't grasp the idea? StackTraceElement is not an instance of Class?
> Do you suggest me to make:
>
> Class.forName(stackTrace[i].getClassName())
>
> every time my metod is called?
>

oops my bad, it should have read:

java.net.SocketStream.class.getName().equals(stackTrace[i].getClassName())

this way there is *some* type safety instead of directly comparing
strings/literals.
Dhanji


More information about the Concurrency-interest mailing list