1 // Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
6 /** common superclass for all platforms that use GCJ to compile a native binary */
7 public abstract class GCJ extends Platform {
9 // static references to these classes ensure that the linker will include them
10 private static Class c1 = gnu.java.locale.Calendar.class;
11 private static Class c2 = java.util.GregorianCalendar.class;
12 private static Class c3 = gnu.gcj.convert.Input_ASCII.class;
13 private static Class c4 = gnu.gcj.convert.Input_UTF8.class;
14 private static Class c5 = gnu.gcj.convert.Input_8859_1.class;
15 private static Class c6 = gnu.java.locale.LocaleInformation.class;
16 private static Class c7 = gnu.gcj.convert.Output_ASCII.class;
18 protected org.xwt.Weak _getWeak(Object o) { return new Java2Weak(o); }
19 private static class Java2Weak extends java.lang.ref.WeakReference implements org.xwt.Weak {
20 public Java2Weak(Object o) { super(o); }