public Object getConstant(int i) throws ClassFormatException {
		if (i == 0)
			throw new ClassFormatException("null constant");
		switch (tags[i]) {
		case ConstantPool.INTEGER:
		case ConstantPool.FLOAT:
		case ConstantPool.LONG:
		case ConstantPool.DOUBLE:
			return constants[i];
		case ConstantPool.STRING:
			return getUTF8(indices1[i]);
		case ConstantPool.CLASS:
			String cType = getClassType(i);
			return Type.tClass(cType.substring(1, cType.length() - 1));
		}
		throw new ClassFormatException("Tag mismatch: " + tags[i]);
	}