Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 01/02/2012 11:50, Ivan wrote: 2012/2/1 Christopher Schultz ch...@christopherschultz.net Of course, you still need to check for null after the loop, so it's not like the change really affects anything other than minor readability. No

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-02-01 Thread Ivan
No sure whether I understood you clearly, if a context is binding on the current thread, and current context classloader has parent classloader, current get method will throw an IllegalStateException. So my question is that, in this scenario, should the context binded on the thread be ignored ? I

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-02-01 Thread Pid
On 01/02/2012 11:50, Ivan wrote: Here's what the reply should have looked like, without the top-posting. 2012/2/1 Christopher Schultz ch...@christopherschultz.net Ivan, On 1/27/12 11:40 PM, Ivan wrote: if (result != null) return result; // Checking thread biding result =

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-01-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, On 1/27/12 11:40 PM, Ivan wrote: if (result != null) return result; // Checking thread biding result = threadBindings.get(currentThread); -- Here, the value from threadBindings is always ignored ? is there something like if

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-01-28 Thread Ivan
of the method. 2012/1/28 Caldarale, Charles R chuck.caldar...@unisys.com From: Ivan [mailto:xhh...@gmail.com] Subject: Correct behavior while checking the thread binding in DirContextURLStreamHandler ? result = threadBindings.get(currentThread); -- Here, the value from

RE: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-01-27 Thread Caldarale, Charles R
From: Ivan [mailto:xhh...@gmail.com] Subject: Correct behavior while checking the thread binding in DirContextURLStreamHandler ? result = threadBindings.get(currentThread); -- Here, the value from threadBindings is always ignored ? No, it's not always ignored

Re: Correct behavior while checking the thread binding in DirContextURLStreamHandler ?

2012-01-27 Thread Ivan
...@gmail.com] Subject: Correct behavior while checking the thread binding in DirContextURLStreamHandler ? result = threadBindings.get(currentThread); -- Here, the value from threadBindings is always ignored ? No, it's not always ignored