sun.rmi.rmic.Main Java Examples

The following examples show how to use sun.rmi.rmic.Main. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Generator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #2
Source File: Generator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #3
Source File: Generator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #4
Source File: Generator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #5
Source File: Generator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #6
Source File: Generator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #7
Source File: Generator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #8
Source File: Generator.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            if (argv[i].equalsIgnoreCase("-always") ||
                argv[i].equalsIgnoreCase("-alwaysGenerate")) {
                alwaysGenerate = true;
                argv[i] = null;
            } else if (argv[i].equalsIgnoreCase("-xtrace")) {
                trace = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #9
Source File: PrintGenerator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #10
Source File: PrintGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #11
Source File: PrintGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #12
Source File: PrintGenerator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #13
Source File: PrintGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #14
Source File: PrintGenerator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #15
Source File: PrintGenerator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #16
Source File: PrintGenerator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    for (int i = 0; i < argv.length; i++) {
        if (argv[i] != null) {
            String arg = argv[i].toLowerCase();
            if (arg.equals("-xprint")) {
                whatToPrint = JAVA;
                argv[i] = null;
                if (i+1 < argv.length) {
                    if (argv[i+1].equalsIgnoreCase("idl")) {
                        argv[++i] = null;
                        whatToPrint = IDL;
                    } else if (argv[i+1].equalsIgnoreCase("both")) {
                        argv[++i] = null;
                        whatToPrint = BOTH;
                    }
                }
            } else if (arg.equals("-xglobal")) {
                global = true;
                argv[i] = null;
            } else if (arg.equals("-xqualified")) {
                qualified = true;
                argv[i] = null;
            } else if (arg.equals("-xtrace")) {
                trace = true;
                argv[i] = null;
            } else if (arg.equals("-xvaluemethods")) {
                valueMethods = true;
                argv[i] = null;
            }
        }
    }
    return true;
}
 
Example #17
Source File: Generator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create and return a new instance of self. Subclasses
 * which need to do something other than default construction
 * must override this method.
 */
protected void generateOutputFiles (CompoundType topType,
                                    BatchEnvironment env,
                                    File destDir) {

    // Grab the 'alreadyChecked' HashSet from the environment...

    HashSet alreadyChecked = env.alreadyChecked;

    // Ask subclass for a list of output types...

    OutputType[] types = getOutputTypesFor(topType,alreadyChecked);

    // Process each file...

    for (int i = 0; i < types.length; i++) {
        OutputType current = types[i];
        String className = current.getName();
        File file = getFileFor(current,destDir);
        boolean sourceFile = false;

        // Do we need to generate this file?

        if (requiresGeneration(file,current.getType())) {

            // Yes. If java source file, add to environment so will be compiled...

            if (file.getName().endsWith(".java")) {
                sourceFile = compileJavaSourceFile(current);

                            // Are we supposeded to compile this one?

                if (sourceFile) {
                    env.addGeneratedFile(file);
                }
            }

            // Now create an output stream and ask subclass to fill it up...

            try {
               IndentingWriter out = new IndentingWriter(
                                                          new OutputStreamWriter(new FileOutputStream(file)),INDENT_STEP,TAB_SIZE);

                long startTime = 0;
                if (env.verbose()) {
                    startTime = System.currentTimeMillis();
                }

                writeOutputFor(types[i],alreadyChecked,out);
                out.close();

                if (env.verbose()) {
                    long duration = System.currentTimeMillis() - startTime;
                    env.output(Main.getText("rmic.generated", file.getPath(), Long.toString(duration)));
                }
                if (sourceFile) {
                    env.parseFile(new ClassFile(file));
                }
            } catch (IOException e) {
                env.error(0, "cant.write", file.toString());
                return;
            }
        } else {

            // No, say so if we need to...

            if (env.verbose()) {
                env.output(Main.getText("rmic.previously.generated", file.getPath()));
            }
        }
    }
}
 
Example #18
Source File: BatchEnvironment.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create a BatchEnvironment for rmic with the given class path,
 * stream for messages and Main.
 */
public BatchEnvironment(OutputStream out, ClassPath path, Main main) {

    super(out,path,main);

    // Make sure we have our definitions...

    try {
        defRemote =
            getClassDeclaration(idRemote).getClassDefinition(this);
        defError =
            getClassDeclaration(idJavaLangError).getClassDefinition(this);
        defException =
            getClassDeclaration(idJavaLangException).getClassDefinition(this);
        defRemoteException =
            getClassDeclaration(idRemoteException).getClassDefinition(this);
        defCorbaObject =
            getClassDeclaration(idCorbaObject).getClassDefinition(this);
        defSerializable =
            getClassDeclaration(idJavaIoSerializable).getClassDefinition(this);
        defRuntimeException =
            getClassDeclaration(idJavaLangRuntimeException).getClassDefinition(this);
        defExternalizable =
            getClassDeclaration(idJavaIoExternalizable).getClassDefinition(this);
        defThrowable=
            getClassDeclaration(idJavaLangThrowable).getClassDefinition(this);
        defIDLEntity=
            getClassDeclaration(idIDLEntity).getClassDefinition(this);
        defValueBase=
            getClassDeclaration(idValueBase).getClassDefinition(this);
        typeRemoteException = defRemoteException.getClassDeclaration().getType();
        typeException = defException.getClassDeclaration().getType();
        typeIOException = getClassDeclaration(idJavaIoIOException).getType();
        typeThrowable = getClassDeclaration(idJavaLangThrowable).getType();

        classPathLoader = new ClassPathLoader(path);

    } catch (ClassNotFound e) {
        error(0, "rmic.class.not.found", e.name);
        throw new Error();
    }
}
 
Example #19
Source File: StubGenerator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    Object marker = new Object() ;

    // Reset any cached options...

    reverseIDs = false;
    localStubs = true;
    useHash = true;
    stubBaseClass = DEFAULT_STUB_CLASS;
    //       tieBaseClass = DEFAULT_TIE_CLASS;
    transactionalObjects = new Hashtable() ;

    // Parse options...

    boolean result = super.parseArgs(argv,main);
    if (result) {
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                String arg = argv[i].toLowerCase();
                if (arg.equals("-iiop")) {
                    argv[i] = null;
                } else if (arg.equals("-xreverseids")) {
                    reverseIDs = true;
                    argv[i] = null;
                } else if (arg.equals("-nolocalstubs")) {
                    localStubs = false;
                    argv[i] = null;
                } else if (arg.equals("-xnohash")) {
                    useHash = false;
                    argv[i] = null;
                } else if (argv[i].equals("-standardPackage")) {
                    standardPackage = true;
                    argv[i] = null;
                } else if (argv[i].equals("-emitPermissionCheck")) {
                    emitPermissionCheck = true;
                    argv[i] = null;
                } else if (arg.equals("-xstubbase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        stubBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xstubbase");
                        result = false;
                    }
                } else if (arg.equals("-xtiebase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        tieBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xtiebase");
                        result = false;
                    }
                } else if (arg.equals("-transactional" )) {
                    // Scan for the next non-flag argument.
                    // Assume that it is a class name and add it
                    // to the list of transactional classes.
                    for ( int ctr=i+1; ctr<argv.length; ctr++ ) {
                        if (argv[ctr].charAt(1) != '-') {
                            transactionalObjects.put( argv[ctr], marker ) ;
                            break ;
                        }
                    }
                    argv[i] = null;
                } else if (arg.equals( "-poa" )) {
                    POATie = true ;
                    argv[i] = null;
                }
            }
        }
    }
    if(POATie){
        tieBaseClass = DEFAULT_POA_TIE_CLASS;
    } else {
        tieBaseClass = DEFAULT_TIE_CLASS;
    }
    return result;
}
 
Example #20
Source File: IDLGenerator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    boolean result = super.parseArgs(argv,main);
    String idlFrom;
    String idlTo;
    if (result) {
    nextArg:
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                if (argv[i].equalsIgnoreCase("-idl")) {
                    idl = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-valueMethods" ) ) {
                    valueMethods = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-noValueMethods" ) ) {
                    valueMethods = false;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-init" ) ) {
                    factory = false;
                    argv[i] = null;
            }
                else if ( argv[i].equalsIgnoreCase( "-factory" ) ) {
                    factory = true;
                    argv[i] = null;
        }
                else if ( argv[i].equalsIgnoreCase( "-idlfile" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            ifHash.put( idlFrom,idlTo );
                            continue nextArg;
    }
                    }
                    main.error("rmic.option.requires.argument", "-idlfile");
                    result = false;
                }
                else if ( argv[i].equalsIgnoreCase( "-idlmodule" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            imHash.put( idlFrom,idlTo );
                            continue nextArg;
                        }
                    }
                    main.error("rmic.option.requires.argument", "-idlmodule");
                    result = false;
                }


            }
        }
    }
    return result;
}
 
Example #21
Source File: IDLGenerator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    boolean result = super.parseArgs(argv,main);
    String idlFrom;
    String idlTo;
    if (result) {
    nextArg:
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                if (argv[i].equalsIgnoreCase("-idl")) {
                    idl = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-valueMethods" ) ) {
                    valueMethods = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-noValueMethods" ) ) {
                    valueMethods = false;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-init" ) ) {
                    factory = false;
                    argv[i] = null;
            }
                else if ( argv[i].equalsIgnoreCase( "-factory" ) ) {
                    factory = true;
                    argv[i] = null;
        }
                else if ( argv[i].equalsIgnoreCase( "-idlfile" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            ifHash.put( idlFrom,idlTo );
                            continue nextArg;
    }
                    }
                    main.error("rmic.option.requires.argument", "-idlfile");
                    result = false;
                }
                else if ( argv[i].equalsIgnoreCase( "-idlmodule" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            imHash.put( idlFrom,idlTo );
                            continue nextArg;
                        }
                    }
                    main.error("rmic.option.requires.argument", "-idlmodule");
                    result = false;
                }


            }
        }
    }
    return result;
}
 
Example #22
Source File: Generator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create and return a new instance of self. Subclasses
 * which need to do something other than default construction
 * must override this method.
 */
protected void generateOutputFiles (CompoundType topType,
                                    BatchEnvironment env,
                                    File destDir) {

    // Grab the 'alreadyChecked' HashSet from the environment...

    HashSet alreadyChecked = env.alreadyChecked;

    // Ask subclass for a list of output types...

    OutputType[] types = getOutputTypesFor(topType,alreadyChecked);

    // Process each file...

    for (int i = 0; i < types.length; i++) {
        OutputType current = types[i];
        String className = current.getName();
        File file = getFileFor(current,destDir);
        boolean sourceFile = false;

        // Do we need to generate this file?

        if (requiresGeneration(file,current.getType())) {

            // Yes. If java source file, add to environment so will be compiled...

            if (file.getName().endsWith(".java")) {
                sourceFile = compileJavaSourceFile(current);

                            // Are we supposeded to compile this one?

                if (sourceFile) {
                    env.addGeneratedFile(file);
                }
            }

            // Now create an output stream and ask subclass to fill it up...

            try {
               IndentingWriter out = new IndentingWriter(
                                                          new OutputStreamWriter(new FileOutputStream(file)),INDENT_STEP,TAB_SIZE);

                long startTime = 0;
                if (env.verbose()) {
                    startTime = System.currentTimeMillis();
                }

                writeOutputFor(types[i],alreadyChecked,out);
                out.close();

                if (env.verbose()) {
                    long duration = System.currentTimeMillis() - startTime;
                    env.output(Main.getText("rmic.generated", file.getPath(), Long.toString(duration)));
                }
                if (sourceFile) {
                    env.parseFile(new ClassFile(file));
                }
            } catch (IOException e) {
                env.error(0, "cant.write", file.toString());
                return;
            }
        } else {

            // No, say so if we need to...

            if (env.verbose()) {
                env.output(Main.getText("rmic.previously.generated", file.getPath()));
            }
        }
    }
}
 
Example #23
Source File: StubGenerator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    Object marker = new Object() ;

    // Reset any cached options...

    reverseIDs = false;
    localStubs = true;
    useHash = true;
    stubBaseClass = DEFAULT_STUB_CLASS;
    //       tieBaseClass = DEFAULT_TIE_CLASS;
    transactionalObjects = new Hashtable() ;

    // Parse options...

    boolean result = super.parseArgs(argv,main);
    if (result) {
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                String arg = argv[i].toLowerCase();
                if (arg.equals("-iiop")) {
                    argv[i] = null;
                } else if (arg.equals("-xreverseids")) {
                    reverseIDs = true;
                    argv[i] = null;
                } else if (arg.equals("-nolocalstubs")) {
                    localStubs = false;
                    argv[i] = null;
                } else if (arg.equals("-xnohash")) {
                    useHash = false;
                    argv[i] = null;
                } else if (argv[i].equals("-standardPackage")) {
                    standardPackage = true;
                    argv[i] = null;
                } else if (argv[i].equals("-emitPermissionCheck")) {
                    emitPermissionCheck = true;
                    argv[i] = null;
                } else if (arg.equals("-xstubbase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        stubBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xstubbase");
                        result = false;
                    }
                } else if (arg.equals("-xtiebase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        tieBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xtiebase");
                        result = false;
                    }
                } else if (arg.equals("-transactional" )) {
                    // Scan for the next non-flag argument.
                    // Assume that it is a class name and add it
                    // to the list of transactional classes.
                    for ( int ctr=i+1; ctr<argv.length; ctr++ ) {
                        if (argv[ctr].charAt(1) != '-') {
                            transactionalObjects.put( argv[ctr], marker ) ;
                            break ;
                        }
                    }
                    argv[i] = null;
                } else if (arg.equals( "-poa" )) {
                    POATie = true ;
                    argv[i] = null;
                }
            }
        }
    }
    if(POATie){
        tieBaseClass = DEFAULT_POA_TIE_CLASS;
    } else {
        tieBaseClass = DEFAULT_TIE_CLASS;
    }
    return result;
}
 
Example #24
Source File: BatchEnvironment.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create a BatchEnvironment for rmic with the given class path,
 * stream for messages and Main.
 */
public BatchEnvironment(OutputStream out, ClassPath path, Main main) {

    super(out,path,main);

    // Make sure we have our definitions...

    try {
        defRemote =
            getClassDeclaration(idRemote).getClassDefinition(this);
        defError =
            getClassDeclaration(idJavaLangError).getClassDefinition(this);
        defException =
            getClassDeclaration(idJavaLangException).getClassDefinition(this);
        defRemoteException =
            getClassDeclaration(idRemoteException).getClassDefinition(this);
        defCorbaObject =
            getClassDeclaration(idCorbaObject).getClassDefinition(this);
        defSerializable =
            getClassDeclaration(idJavaIoSerializable).getClassDefinition(this);
        defRuntimeException =
            getClassDeclaration(idJavaLangRuntimeException).getClassDefinition(this);
        defExternalizable =
            getClassDeclaration(idJavaIoExternalizable).getClassDefinition(this);
        defThrowable=
            getClassDeclaration(idJavaLangThrowable).getClassDefinition(this);
        defIDLEntity=
            getClassDeclaration(idIDLEntity).getClassDefinition(this);
        defValueBase=
            getClassDeclaration(idValueBase).getClassDefinition(this);
        typeRemoteException = defRemoteException.getClassDeclaration().getType();
        typeException = defException.getClassDeclaration().getType();
        typeIOException = getClassDeclaration(idJavaIoIOException).getType();
        typeThrowable = getClassDeclaration(idJavaLangThrowable).getType();

        classPathLoader = new ClassPathLoader(path);

    } catch (ClassNotFound e) {
        error(0, "rmic.class.not.found", e.name);
        throw new Error();
    }
}
 
Example #25
Source File: BatchEnvironment.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create a BatchEnvironment for rmic with the given class path,
 * stream for messages and Main.
 */
public BatchEnvironment(OutputStream out, ClassPath path, Main main) {

    super(out,path,main);

    // Make sure we have our definitions...

    try {
        defRemote =
            getClassDeclaration(idRemote).getClassDefinition(this);
        defError =
            getClassDeclaration(idJavaLangError).getClassDefinition(this);
        defException =
            getClassDeclaration(idJavaLangException).getClassDefinition(this);
        defRemoteException =
            getClassDeclaration(idRemoteException).getClassDefinition(this);
        defCorbaObject =
            getClassDeclaration(idCorbaObject).getClassDefinition(this);
        defSerializable =
            getClassDeclaration(idJavaIoSerializable).getClassDefinition(this);
        defRuntimeException =
            getClassDeclaration(idJavaLangRuntimeException).getClassDefinition(this);
        defExternalizable =
            getClassDeclaration(idJavaIoExternalizable).getClassDefinition(this);
        defThrowable=
            getClassDeclaration(idJavaLangThrowable).getClassDefinition(this);
        defIDLEntity=
            getClassDeclaration(idIDLEntity).getClassDefinition(this);
        defValueBase=
            getClassDeclaration(idValueBase).getClassDefinition(this);
        typeRemoteException = defRemoteException.getClassDeclaration().getType();
        typeException = defException.getClassDeclaration().getType();
        typeIOException = getClassDeclaration(idJavaIoIOException).getType();
        typeThrowable = getClassDeclaration(idJavaLangThrowable).getType();

        classPathLoader = new ClassPathLoader(path);

    } catch (ClassNotFound e) {
        error(0, "rmic.class.not.found", e.name);
        throw new Error();
    }
}
 
Example #26
Source File: StubGenerator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    Object marker = new Object() ;

    // Reset any cached options...

    reverseIDs = false;
    localStubs = true;
    useHash = true;
    stubBaseClass = DEFAULT_STUB_CLASS;
    //       tieBaseClass = DEFAULT_TIE_CLASS;
    transactionalObjects = new Hashtable() ;

    // Parse options...

    boolean result = super.parseArgs(argv,main);
    if (result) {
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                String arg = argv[i].toLowerCase();
                if (arg.equals("-iiop")) {
                    argv[i] = null;
                } else if (arg.equals("-xreverseids")) {
                    reverseIDs = true;
                    argv[i] = null;
                } else if (arg.equals("-nolocalstubs")) {
                    localStubs = false;
                    argv[i] = null;
                } else if (arg.equals("-xnohash")) {
                    useHash = false;
                    argv[i] = null;
                } else if (argv[i].equals("-standardPackage")) {
                    standardPackage = true;
                    argv[i] = null;
                } else if (argv[i].equals("-emitPermissionCheck")) {
                    emitPermissionCheck = true;
                    argv[i] = null;
                } else if (arg.equals("-xstubbase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        stubBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xstubbase");
                        result = false;
                    }
                } else if (arg.equals("-xtiebase")) {
                    argv[i] = null;
                    if (++i < argv.length && argv[i] != null && !argv[i].startsWith("-")) {
                        tieBaseClass = argv[i];
                        argv[i] = null;
                    } else {
                        main.error("rmic.option.requires.argument", "-Xtiebase");
                        result = false;
                    }
                } else if (arg.equals("-transactional" )) {
                    // Scan for the next non-flag argument.
                    // Assume that it is a class name and add it
                    // to the list of transactional classes.
                    for ( int ctr=i+1; ctr<argv.length; ctr++ ) {
                        if (argv[ctr].charAt(1) != '-') {
                            transactionalObjects.put( argv[ctr], marker ) ;
                            break ;
                        }
                    }
                    argv[i] = null;
                } else if (arg.equals( "-poa" )) {
                    POATie = true ;
                    argv[i] = null;
                }
            }
        }
    }
    if(POATie){
        tieBaseClass = DEFAULT_POA_TIE_CLASS;
    } else {
        tieBaseClass = DEFAULT_TIE_CLASS;
    }
    return result;
}
 
Example #27
Source File: IDLGenerator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param error Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    boolean result = super.parseArgs(argv,main);
    String idlFrom;
    String idlTo;
    if (result) {
    nextArg:
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                if (argv[i].equalsIgnoreCase("-idl")) {
                    idl = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-valueMethods" ) ) {
                    valueMethods = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-noValueMethods" ) ) {
                    valueMethods = false;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-init" ) ) {
                    factory = false;
                    argv[i] = null;
            }
                else if ( argv[i].equalsIgnoreCase( "-factory" ) ) {
                    factory = true;
                    argv[i] = null;
        }
                else if ( argv[i].equalsIgnoreCase( "-idlfile" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            ifHash.put( idlFrom,idlTo );
                            continue nextArg;
    }
                    }
                    main.error("rmic.option.requires.argument", "-idlfile");
                    result = false;
                }
                else if ( argv[i].equalsIgnoreCase( "-idlmodule" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            imHash.put( idlFrom,idlTo );
                            continue nextArg;
                        }
                    }
                    main.error("rmic.option.requires.argument", "-idlmodule");
                    result = false;
                }


            }
        }
    }
    return result;
}
 
Example #28
Source File: Generator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create and return a new instance of self. Subclasses
 * which need to do something other than default construction
 * must override this method.
 */
protected void generateOutputFiles (CompoundType topType,
                                    BatchEnvironment env,
                                    File destDir) {

    // Grab the 'alreadyChecked' HashSet from the environment...

    HashSet alreadyChecked = env.alreadyChecked;

    // Ask subclass for a list of output types...

    OutputType[] types = getOutputTypesFor(topType,alreadyChecked);

    // Process each file...

    for (int i = 0; i < types.length; i++) {
        OutputType current = types[i];
        String className = current.getName();
        File file = getFileFor(current,destDir);
        boolean sourceFile = false;

        // Do we need to generate this file?

        if (requiresGeneration(file,current.getType())) {

            // Yes. If java source file, add to environment so will be compiled...

            if (file.getName().endsWith(".java")) {
                sourceFile = compileJavaSourceFile(current);

                            // Are we supposeded to compile this one?

                if (sourceFile) {
                    env.addGeneratedFile(file);
                }
            }

            // Now create an output stream and ask subclass to fill it up...

            try {
               IndentingWriter out = new IndentingWriter(
                                                          new OutputStreamWriter(new FileOutputStream(file)),INDENT_STEP,TAB_SIZE);

                long startTime = 0;
                if (env.verbose()) {
                    startTime = System.currentTimeMillis();
                }

                writeOutputFor(types[i],alreadyChecked,out);
                out.close();

                if (env.verbose()) {
                    long duration = System.currentTimeMillis() - startTime;
                    env.output(Main.getText("rmic.generated", file.getPath(), Long.toString(duration)));
                }
                if (sourceFile) {
                    env.parseFile(new ClassFile(file));
                }
            } catch (IOException e) {
                env.error(0, "cant.write", file.toString());
                return;
            }
        } else {

            // No, say so if we need to...

            if (env.verbose()) {
                env.output(Main.getText("rmic.previously.generated", file.getPath()));
            }
        }
    }
}
 
Example #29
Source File: IDLGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Examine and consume command line arguments.
 * @param argv The command line arguments. Ignore null
 * and unknown arguments. Set each consumed argument to null.
 * @param main Report any errors using the main.error() methods.
 * @return true if no errors, false otherwise.
 */
public boolean parseArgs(String argv[], Main main) {
    boolean result = super.parseArgs(argv,main);
    String idlFrom;
    String idlTo;
    if (result) {
    nextArg:
        for (int i = 0; i < argv.length; i++) {
            if (argv[i] != null) {
                if (argv[i].equalsIgnoreCase("-idl")) {
                    idl = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-valueMethods" ) ) {
                    valueMethods = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-noValueMethods" ) ) {
                    valueMethods = false;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-init" ) ) {
                    factory = false;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-factory" ) ) {
                    factory = true;
                    argv[i] = null;
                }
                else if ( argv[i].equalsIgnoreCase( "-idlfile" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            ifHash.put( idlFrom,idlTo );
                            continue nextArg;
                        }
                    }
                    main.error("rmic.option.requires.argument", "-idlfile");
                    result = false;
                }
                else if ( argv[i].equalsIgnoreCase( "-idlmodule" ) ) {
                    argv[i] = null;
                    if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                        idlFrom = argv[i];
                        argv[i] = null;
                        if ( ++i < argv.length && argv[i] != null && !argv[i].startsWith("-") ) {
                            idlTo = argv[i];
                            argv[i] = null;
                            imHash.put( idlFrom,idlTo );
                            continue nextArg;
                        }
                    }
                    main.error("rmic.option.requires.argument", "-idlmodule");
                    result = false;
                }


            }
        }
    }
    return result;
}
 
Example #30
Source File: BatchEnvironment.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create a BatchEnvironment for rmic with the given class path,
 * stream for messages and Main.
 */
public BatchEnvironment(OutputStream out, ClassPath path, Main main) {

    super(out,path,main);

    // Make sure we have our definitions...

    try {
        defRemote =
            getClassDeclaration(idRemote).getClassDefinition(this);
        defError =
            getClassDeclaration(idJavaLangError).getClassDefinition(this);
        defException =
            getClassDeclaration(idJavaLangException).getClassDefinition(this);
        defRemoteException =
            getClassDeclaration(idRemoteException).getClassDefinition(this);
        defCorbaObject =
            getClassDeclaration(idCorbaObject).getClassDefinition(this);
        defSerializable =
            getClassDeclaration(idJavaIoSerializable).getClassDefinition(this);
        defRuntimeException =
            getClassDeclaration(idJavaLangRuntimeException).getClassDefinition(this);
        defExternalizable =
            getClassDeclaration(idJavaIoExternalizable).getClassDefinition(this);
        defThrowable=
            getClassDeclaration(idJavaLangThrowable).getClassDefinition(this);
        defIDLEntity=
            getClassDeclaration(idIDLEntity).getClassDefinition(this);
        defValueBase=
            getClassDeclaration(idValueBase).getClassDefinition(this);
        typeRemoteException = defRemoteException.getClassDeclaration().getType();
        typeException = defException.getClassDeclaration().getType();
        typeIOException = getClassDeclaration(idJavaIoIOException).getType();
        typeThrowable = getClassDeclaration(idJavaLangThrowable).getType();

        classPathLoader = new ClassPathLoader(path);

    } catch (ClassNotFound e) {
        error(0, "rmic.class.not.found", e.name);
        throw new Error();
    }
}