import Main.Main;
public class TypeUtil {
- public static final String StringClass="String";
- public static final String ObjectClass="Object";
- public static final String StartupClass="StartupObject";
- public static final String TagClass="TagDescriptor";
- public static final String ThreadClass="Thread";
- public static final String TaskClass="Task";
+ public static String StringClass;
+ public static String ObjectClass;
+ public static String StartupClass;
+ public static String TagClass;
+ public static String ThreadClass;
+ public static String TaskClass;
State state;
Hashtable supertable;
Hashtable subclasstable;
public TypeUtil(State state, BuildIR bir) {
this.state=state;
this.bir=bir;
+ if (state.JNI) {
+ StringClass="java.lang.String";
+ ObjectClass="java.lang.Object";
+ StartupClass="StartupObject";
+ TagClass="TagDescriptor";
+ ThreadClass="java.lang.Thread";
+ TaskClass="Task";
+ } else {
+ StringClass="String";
+ ObjectClass="Object";
+ StartupClass="StartupObject";
+ TagClass="TagDescriptor";
+ ThreadClass="Thread";
+ TaskClass="Task";
+ }
createTables();
}
BuildFlat bf;
JavaBuilder jb=null;
- if (true) {
+ if (state.JNI) {
BuildIR bir=new BuildIR(state);
tu=new TypeUtil(state, bir);
SemanticCheck sc=new SemanticCheck(state,tu);
# Setup class path
if $JNI
then
-JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/java/lang/ -classlibrary $ROBUSTROOT/classpath/java/io/ -classlibrary $ROBUSTROOT/classpath/java/lang/reflect/ -classlibrary $ROBUSTROOT/classpath/java/text/ -classlibrary $ROBUSTROOT/classpath/java/security/ -classlibrary $ROBUSTROOT/classpath/java/net/"
+JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/"
elif $MGCINTELFLAG
then
JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/MGC/ -classlibrary $ROBUSTROOT/ClassLibrary/MGC/gnu/"