- public static final Type VOID = new Type("V");
- public static final Type INT = new Type("I");
- public static final Type LONG = new Type("J");
- public static final Type BOOLEAN = new Type("Z");
- public static final Type DOUBLE = new Type("D");
- public static final Type FLOAT = new Type("F");
- public static final Type BYTE = new Type("B");
- public static final Type CHAR = new Type("C");
- public static final Type SHORT = new Type("S");
+
+ private static Hashtable instances = new Hashtable(); // this has to appear at the top of the file
+
+ // Public API //////////////////////////////////////////////////////////////////////////////
+
+ public static final Type VOID = new Type("V", "void");
+ public static final Type INT = new Type("I", "int");
+ public static final Type LONG = new Type("J", "long");
+ public static final Type BOOLEAN = new Type("Z", "boolean");
+ public static final Type DOUBLE = new Type("D", "double");
+ public static final Type FLOAT = new Type("F", "float");
+ public static final Type BYTE = new Type("B", "byte");
+ public static final Type CHAR = new Type("C", "char");
+ public static final Type SHORT = new Type("S", "short");