code: public final int resolveClassIndex(ArrayType arrayType)
      {
          int size = 0;
          int index = 0;
          constantReadLock.lock();
          try
          {
              size = getConstantPoolSize();
              index = getClassIndex(arrayType);
          }
          finally
          {
              constantReadLock.unlock();
          }
          if (index == -1)
          {
              String name = Descriptor.getFieldDesriptor(arrayType);
              int nameIndex = resolveNameIndex(name);
              index = addConstantInfo(new Clazz(nameIndex), size);
          }
          addIndexedElement(index, arrayType);
          return index;
      }
docs: Returns the constant map index to class
  If entry doesn't exist it is created.
  @param arrayType
  @return