re PR libgcj/25414 (should update rmic)

2006-04-05  Archit Shah  <ashah@redhat.com>

        PR java/25414
        * gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
        Add classpath argument.
        * gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
        caller.
        * gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
        * gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
        * gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
        * gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
        mkdirs for destination directory, correct handling of superclasses
        and interfaces of the remote class, correct handling of exceptions
        declared by remote methods.

From-SVN: r112699
This commit is contained in:
Archit Shah 2006-04-05 09:53:08 +00:00 committed by Andrew Haley
parent 6eee989369
commit 917173f4d2
7 changed files with 293 additions and 90 deletions

View file

@ -82,12 +82,27 @@ public abstract class Compiler
this.dest = dest;
}
/** Get the classpath for compilation. */
public String getClasspath ()
{
return classpath;
}
/** Set the classpath for compilation. */
public void setClasspath (String classpath)
{
this.classpath = classpath;
}
/** Compile the given file. Throws exception on error. */
public abstract void compile (String name) throws Exception;
/** The destination directory, or null if none set. */
protected String dest;
/** The classpath directory, or null if none set. */
private String classpath;
/** Class prefix used when trying to find instance. */
private static final String classPrefix = "gnu.java.rmi.rmic.Compile_";
}