Program: 92282
Project: 92282
Buggy source:
/** 
 * Implementation of   {@link #unexpectedException(Logger,Class,String,Throwable)}.
 * @param logger  Where to log the error, or {@code null}.
 * @param classe  The fully qualified class name where the error occurred, or {@code null}.
 * @param method  The method where the error occurred, or {@code null}.
 * @param error   The error.
 * @param level   The logging level.
 * @return {@code true} if the error has been logged, or {@code false} if the loggerdoesn't log anything at the specified level.
 */
private static boolean unexpectedException(Logger logger,String classe,String method,final Throwable error,final Level level){
  if (error == null) {
    return false;
  }
  if (logger == null && classe != null) {
    final int separator=classe.lastIndexOf('.');
    final String paquet=(separator >= 1) ? classe.substring(0,separator - 1) : "String_Node_Str";
    logger=getLogger(paquet);
  }
  if (logger != null && !logger.isLoggable(level)) {
    return false;
  }
  if (logger == null || classe == null || method == null) {
    String paquet=(logger != null) ? logger.getName() : null;
    final StackTraceElement[] elements=error.getStackTrace();
    for (int i=0; i < elements.length; i++) {
      final StackTraceElement element=elements[i];
      final String classname=element.getClassName();
      if (classe != null) {
        if (!classname.equals(classe)) {
          continue;
        }
      }
 else       if (paquet != null) {
        if (!classname.startsWith(paquet)) {
          continue;
        }
        final int length=paquet.length();
        if (classname.length() > length) {
          final char separator=classname.charAt(length);
          if (Character.isJavaIdentifierPart(separator)) {
            continue;
          }
        }
      }
      final String methodName=element.getMethodName();
      if (method != null && !methodName.equals(method)) {
        continue;
      }
      if (paquet == null) {
        final int separator=classname.lastIndexOf('.');
        paquet=(separator >= 1) ? classname.substring(0,separator - 1) : "String_Node_Str";
        logger=getLogger(paquet);
        if (!logger.isLoggable(level)) {
          return false;
        }
      }
      if (classe == null) {
        classe=classname;
      }
      if (method == null) {
        method=methodName;
      }
      break;
    }
    if (logger == null) {
      logger=getLogger(Logger.GLOBAL_LOGGER_NAME);
      if (!logger.isLoggable(level)) {
        return false;
      }
    }
  }
  final StringBuilder buffer=new StringBuilder(256).append(Classes.getShortClassName(error));
  String message=error.getMessage();
  if (message != null) {
    buffer.append("String_Node_Str").append(message);
  }
  message=buffer.toString();
  message=Exceptions.formatChainedMessages(null,message,error);
  final LogRecord record=new LogRecord(level,message);
  if (classe != null) {
    record.setSourceClassName(classe);
  }
  if (method != null) {
    record.setSourceMethodName(method);
  }
  if (level.intValue() >= LEVEL_THRESHOLD_FOR_STACKTRACE) {
    record.setThrown(error);
  }
  record.setLoggerName(logger.getName());
  logger.log(record);
  return true;
}

Fixed version (ground truth):
/** 
 * Implementation of   {@link #unexpectedException(Logger,Class,String,Throwable)}.
 * @param logger  Where to log the error, or {@code null}.
 * @param classe  The fully qualified class name where the error occurred, or {@code null}.
 * @param method  The method where the error occurred, or {@code null}.
 * @param error   The error.
 * @param level   The logging level.
 * @return {@code true} if the error has been logged, or {@code false} if the loggerdoesn't log anything at the specified level.
 */
private static boolean unexpectedException(Logger logger,String classe,String method,final Throwable error,final Level level){
  if (error == null) {
    return false;
  }
  if (logger == null && classe != null) {
    final int separator=classe.lastIndexOf('.');
    final String paquet=(separator >= 1) ? classe.substring(0,separator - 1) : "String_Node_Str";
    logger=getLogger(paquet);
  }
  if (logger != null && !logger.isLoggable(level)) {
    return false;
  }
  if (logger == null || classe == null || method == null) {
    String paquet=(logger != null) ? logger.getName() : null;
    for (    final StackTraceElement element : error.getStackTrace()) {
      final String classname=element.getClassName();
      if (classe != null) {
        if (!classname.equals(classe)) {
          continue;
        }
      }
 else       if (paquet != null) {
        if (!classname.startsWith(paquet)) {
          continue;
        }
        final int length=paquet.length();
        if (classname.length() > length) {
          final char separator=classname.charAt(length);
          if (Character.isJavaIdentifierPart(separator)) {
            continue;
          }
        }
      }
      final String methodName=element.getMethodName();
      if (method != null && !methodName.equals(method)) {
        continue;
      }
      if (paquet == null) {
        final int separator=classname.lastIndexOf('.');
        paquet=(separator >= 1) ? classname.substring(0,separator - 1) : "String_Node_Str";
        logger=getLogger(paquet);
        if (!logger.isLoggable(level)) {
          return false;
        }
      }
      if (classe == null) {
        classe=classname;
      }
      if (method == null) {
        method=methodName;
      }
      break;
    }
    if (logger == null) {
      logger=getLogger(Logger.GLOBAL_LOGGER_NAME);
      if (!logger.isLoggable(level)) {
        return false;
      }
    }
  }
  final StringBuilder buffer=new StringBuilder(256).append(Classes.getShortClassName(error));
  String message=error.getMessage();
  if (message != null) {
    buffer.append("String_Node_Str").append(message);
  }
  message=buffer.toString();
  message=Exceptions.formatChainedMessages(null,message,error);
  final LogRecord record=new LogRecord(level,message);
  if (classe != null) {
    record.setSourceClassName(classe);
  }
  if (method != null) {
    record.setSourceMethodName(method);
  }
  if (level.intValue() >= LEVEL_THRESHOLD_FOR_STACKTRACE) {
    record.setThrown(error);
  }
  record.setLoggerName(logger.getName());
  logger.log(record);
  return true;
}