code: public ConstantInfo getConstant(int index) {
          if (mIndexedConstants == null) {
              throw new ArrayIndexOutOfBoundsException
                  ("Constant pool indexes have not been assigned");
          }
  
          return (ConstantInfo)mIndexedConstants.get(index);
      }
docs: Returns a constant from the pool by index, or throws an exception if not
  found. If this constant pool has not yet been written or was not created
  by the read method, indexes are not assigned.
  
  @throws ArrayIndexOutOfBoundsException if index is out of range.