code: private void checkConstantTag(Constant constant, int expectedTag) throws InvalidClassFileFormatException {
          if (constant.tag != expectedTag) {
              throw new InvalidClassFileFormatException(expectedClassDescriptor, codeBaseEntry);
          }
      }
docs: Check that a constant has the expected tag.
  
  @param constant
  the constant to check
  @param expectedTag
  the expected constant tag
  @throws InvalidClassFileFormatException
  if the constant's tag does not match the expected tag