Revision 47436 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/plugins/PluginClassLoader.java

View differences:

PluginClassLoader.java
22 22
 */
23 23
package org.gvsig.andami.plugins;
24 24

  
25
import java.io.Console;
25 26
import java.io.DataInputStream;
26 27
import java.io.File;
27 28
import java.io.FileInputStream;
......
52 53
import org.apache.commons.lang3.StringUtils;
53 54

  
54 55
import org.gvsig.andami.messages.Messages;
56
import org.gvsig.tools.future.FutureUtils;
55 57
import org.slf4j.Logger;
56 58
import org.slf4j.LoggerFactory;
57 59

  
......
234 236
                    isOtherLoader = true;
235 237
                    c = loadOtherClass(name);
236 238
                } catch (ClassNotFoundException e3) {
239
                    if(StringUtils.equals(name, "java.nio.file.SimpleFileVisitor")){
240
                        logger.info("Crash loading SimpleFileVisitor: isOtherLoader = "+isOtherLoader+" PluginName = "+this.getPluginName());
241
                        if(FutureUtils.use("ClassLoaderDebug")){
242
                            logger.info("Pulse enter to continue");
243
                            Console console = System.console();
244
                            console.readLine();
245
                        }
246
                    }
237 247
                    throw new ClassNotFoundException("Class " + name
238 248
                            + " not found through the plugin " + baseDir, e3);
239 249
                } finally {

Also available in: Unified diff