Tobias Krais wrote:
Hi Stephan,

ClassLoader clazzLoader = ProtocolHandler.class.getClassLoader();
Thread.currentThread().setContextClassLoader(clazzLoader);
unless you control the remaining lifespan of the thread, remember to
reset the context class loader once you are done

sounds interesting. Can you tell me what happens if I don't reset it?

int i;
void f() { i = 2; }
void g() {
  i = 1;
  f();
  printf("I expect i to be 1: %d\n", i);
}

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to