code: protected void validateMissingJndiName(Class<?> instanceClass, A annotation)
                      throws InjectionException
      {
          if (isValidationLoggable()) // F50309.6
          {
              Tr.error(tc, "MISSING_CLASS_LEVEL_ANNOTATION_NAME_CWNEN0073E",
                       '@' + annotation.annotationType().getSimpleName(),
                       instanceClass.getName(),
                       ivNameSpaceConfig.getModuleName(),
                       ivNameSpaceConfig.getApplicationName());
              if (isValidationFailable())
              {
                  throw new InjectionException("The @" + annotation.annotationType().getSimpleName() +
                                               " class-level annotation on the " + instanceClass.getName() +
                                               " class in the " + ivNameSpaceConfig.getModuleName() +
                                               " module of the " + ivNameSpaceConfig.getApplicationName() +
                                               " application does not specify a JNDI name.");
              }
          }
          else
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "ignoring class-level annotation without name");
          }
      }
docs: Perform validation on a class-level annotation for which {@link #getJndiName} returned the empty string. By default, this method
  performs no validation for backwards compatibility.
  
  @param instanceClass the class containing the annotation
  @param annotation the annotation
  @throws InjectionException