Fix Illegal type in constant pool