Merge branch '1.2.x'

pull/3609/merge
Andy Wilkinson 9 years ago
commit 4660a3ed4d

@ -34,6 +34,7 @@ import org.springframework.lang.UsesJava7;
*
* @author Phillip Webb
* @author Dave Syer
* @author Andy Wilkinson
*/
public class LaunchedURLClassLoader extends URLClassLoader {
@ -108,9 +109,15 @@ public class LaunchedURLClassLoader extends URLClassLoader {
@Override
public boolean hasMoreElements() {
try {
Handler.setUseFastConnectionExceptions(true);
return rootResources.hasMoreElements()
|| localResources.hasMoreElements();
}
finally {
Handler.setUseFastConnectionExceptions(false);
}
}
@Override
public URL nextElement() {

Loading…
Cancel
Save