Class GcjHacks

java.lang.Object
  extended byGcjHacks

public class GcjHacks
extends Object

A class to implicitely cause gcj to include boot class files that it won't include normally. For instance: if a program uses the Date class, it will fail to run correctly. This is because Date uses Calendar, but through reflection. Gcj doesnt properly understand this, so it does not include Calendar when compiling, and therefore there is an unresolved symbol problem when the program runs. We force it to include Calendar by using the line shown below in the code. This should only be used when building using gcj, and never with javac. This class will most likely never compile with javac, nor should it.

Author:
Kevin Thompson [antiduh@csh.rit.edu]

Field Summary
private static Class c1
           
 
Constructor Summary
GcjHacks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c1

private static Class c1
Constructor Detail

GcjHacks

public GcjHacks()