jaxp/src/com/sun/org/apache/bcel/internal/util/JavaWrapper.java
changeset 16953 a44e04deb948
parent 12457 c348e06f0e82
child 25264 040625ce9b72
equal deleted inserted replaced
16416:bcebd3fdefc9 16953:a44e04deb948
    70  * To use your own class loader you can set the "bcel.classloader" system property
    70  * To use your own class loader you can set the "bcel.classloader" system property
    71  * which defaults to "com.sun.org.apache.bcel.internal.util.ClassLoader", e.g., with
    71  * which defaults to "com.sun.org.apache.bcel.internal.util.ClassLoader", e.g., with
    72  * <pre>java com.sun.org.apache.bcel.internal.util.JavaWrapper -Dbcel.classloader=foo.MyLoader &lt;real.class.name&gt; [arguments]</pre>
    72  * <pre>java com.sun.org.apache.bcel.internal.util.JavaWrapper -Dbcel.classloader=foo.MyLoader &lt;real.class.name&gt; [arguments]</pre>
    73  * </p>
    73  * </p>
    74  *
    74  *
       
    75  * @version $Id: JavaWrapper.java,v 1.3 2007-07-19 04:34:52 ofung Exp $
    75  * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
    76  * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
    76  * @see ClassLoader
    77  * @see ClassLoader
    77  */
    78  */
    78 public class JavaWrapper {
    79 public class JavaWrapper {
    79   private java.lang.ClassLoader loader;
    80   private java.lang.ClassLoader loader;
    80 
    81 
    81   private static java.lang.ClassLoader getClassLoader() {
    82   private static java.lang.ClassLoader getClassLoader() {
    82     String s = System.getProperty("bcel.classloader");
    83     String s = SecuritySupport.getSystemProperty("bcel.classloader");
    83 
    84 
    84     if((s == null) || "".equals(s))
    85     if((s == null) || "".equals(s))
    85       s = "com.sun.org.apache.bcel.internal.util.ClassLoader";
    86       s = "com.sun.org.apache.bcel.internal.util.ClassLoader";
    86 
    87 
    87     try {
    88     try {