Field
Show
Ignore:
Timestamp:
08/05/2008 07:44:31 PM (5 months ago)
Author:
hyposurface@hyposurface-corporations-mac-pro.local
branch:
default
Message:

various fixes to classloader based on work in Boston

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • development/java/field/bytecode/protect/Trampoline2.java

    r84 r145  
    393393                trampoline = this; 
    394394 
    395                 ignored = new String[] {  "java.", "javax.", "sun.", "com.apple", "apple.", "field.namespace", "field.math", "field.launch.", "org.objectweb", "com.sun", "org.xml", "org.w3c", "$Prox", "main", "field.util.BetterWeak", "field.misc.ANSIColorUtils", "ch.rand", "org.python", "org.apache" }; 
     395                 
     396                String exceptions = SystemProperties.getProperty("trampolineExceptions", null); 
     397                ignored = new String[] {"java.", "javax.", "sun.", "com.apple", "apple.", "field.namespace", "field.math", "field.launch.", "org.objectweb", "com.sun", "org.xml", "org.w3c", "$Prox", "main", "field.util.BetterWeak", "field.misc.ANSIColorUtils", "ch.rand", "org.python", "org.apache" }; 
     398                 
     399                if (exceptions!=null) 
     400                { 
     401                         
     402                        ArrayList a = new ArrayList(Arrays.asList(ignored)); 
     403                        a.addAll(Arrays.asList(exceptions.split(":"))); 
     404                        ignored = (String[]) a.toArray(ignored); 
     405                } 
    396406 
    397407                loader = new MyClassLoader(((URLClassLoader) this.getClass().getClassLoader()).getURLs(), (this.getClass().getClassLoader())); 
     
    408418                String extensionsDir = SystemProperties.getProperty("extensions.dir", "../../../../extensions/"); 
    409419                Trampoline2.trampoline.addExtensionsDirectory(new File(extensionsDir)); 
    410  
     420                 
    411421                try { 
    412422                        final Class c = (loader.loadClass(classToLaunch)); 
     
    433443                                public void run() { 
    434444                                        try { 
     445 
     446                                                System.out.println(" we are in thread <"+Thread.currentThread()+">"); 
    435447                                                Launcher.getLauncher().mainThread = Thread.currentThread(); 
    436448                                                printInfo();