public void clearCode() {
		if (this.isDeleted) {
			final String s = "Cannot change a field once it has been marked "
					+ "for deletion";
			throw new IllegalStateException(s);
		}

		if (ClassEditor.DEBUG) {
			System.out.println("Clearing code");
			Thread.dumpStack();
		}

		code.clear();
		tryCatches.clear();
		maxLocals = 0;
		maxStack = 0;
		this.setDirty(true);
	}