Program: 162903
Project: 162903
Buggy source:
@SuppressWarnings("String_Node_Str") void onEvent() throws StreamCorruptedException {
  long transactionId=inWire.read(Fields.transactionId).int64();
  timestamp=inWire.read(timeStamp).int64();
  channelId=inWire.read(Fields.channelId).int16();
  final StringBuilder methodName=Wires.acquireStringBuilder();
  inWire.read(Fields.methodName).text(methodName);
  if (!incompleteWork.isEmpty()) {
    Runnable runnable=incompleteWork.get(transactionId);
    if (runnable != null) {
      runnable.run();
      return;
    }
  }
  try {
    if (putWithoutAcc.contentEquals(methodName)) {
      writeVoid(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2);
        bytesMap.put(reader,reader);
      }
);
      return;
    }
    if (keySet.contentEquals(methodName)) {
      writeChunked(transactionId,map -> map.keySet().iterator(),writeElement);
      return;
    }
    if (values.contentEquals(methodName)) {
      writeChunked(transactionId,map -> map.delegate.values().iterator(),writeElement);
      return;
    }
    if (entrySet.contentEquals(methodName)) {
      writeChunked(transactionId,m -> m.delegate.entrySet().iterator(),writeEntry);
      return;
    }
    if (entrySetRestricted.contentEquals(methodName)) {
      long maxEntries=inWire.read(arg1).int64();
      writeChunked(transactionId,m -> m.delegate.entrySet().iterator(),writeEntry,maxEntries);
      return;
    }
    if (putAll.contentEquals(methodName)) {
      putAll(transactionId);
      return;
    }
    outWire.write(Fields.transactionId).int64(transactionId);
    if (createChannel.contentEquals(methodName)) {
      writeVoid(() -> {
        short channelId1=inWire.read(arg1).int16();
        mapFactory.get().replicatedViaChannel(hub.createChannel(channelId1)).create();
        return null;
      }
);
      return;
    }
    if (EventId.remoteIdentifier.contentEquals(methodName)) {
      this.remoteIdentifier=inWire.read(result).int8();
      return;
    }
    if (longSize.contentEquals(methodName)) {
      write(b -> outWire.write(result).int64(b.longSize()));
      return;
    }
    if (isEmpty.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.isEmpty()));
      return;
    }
    if (containsKey.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.delegate.containsKey(toByteArray(inWire,arg1))));
      return;
    }
    if (containsValue.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.delegate.containsValue(toByteArray(inWire,arg1))));
      return;
    }
    if (get.contentEquals(methodName)) {
      writeValueUsingDelegate(map -> map.get(toByteArray(inWire,arg1)));
      return;
    }
    if (put.contentEquals(methodName)) {
      writeValue(b -> {
        final net.openhft.lang.io.Bytes reader=MapWireHandler.this.toReader(inWire,arg1,arg2);
        return b.put(reader,reader);
      }
);
      return;
    }
    if (remove.contentEquals(methodName)) {
      writeValue(b -> b.remove(toReader(inWire,arg1)));
      return;
    }
    if (clear.contentEquals(methodName)) {
      writeVoid(BytesChronicleMap::clear);
      return;
    }
    if (replace.contentEquals(methodName)) {
      write(bytesMap -> {
        final VanillaChronicleMap map=bytesMap.delegate;
        byte[] result=(byte[])map.replace(toByteArray(inWire,arg1),toByteArray(inWire,arg2));
        boolean isNull=result == null || result.length == 0;
        outWire.write(resultIsNull).bool(isNull);
        if (!isNull) {
          outWire.write(Fields.result);
          outWire.bytes().write(result);
        }
      }
);
      return;
    }
    if (replaceWithOldAndNewValue.contentEquals(methodName)) {
      write(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2,arg3);
        boolean result=bytesMap.replace(reader,reader,reader);
        outWire.write(Fields.result).bool(result);
      }
);
      return;
    }
    if (putIfAbsent.contentEquals(methodName)) {
      writeValueFromBytes(b -> {
        byte[] key=MapWireHandler.this.toByteArray(inWire,arg1);
        byte[] value=MapWireHandler.this.toByteArray(inWire,arg2);
        return ((Map<byte[],byte[]>)b.delegate).putIfAbsent(key,value);
      }
);
      return;
    }
    if (removeWithValue.contentEquals(methodName)) {
      write(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2);
        outWire.write(result).bool(bytesMap.remove(reader,reader));
      }
);
      return;
    }
    if (applicationVersion.contentEquals(methodName)) {
      write(b -> outWire.write(result).text(applicationVersion()));
      return;
    }
    if (persistedDataVersion.contentEquals(methodName)) {
      write(b -> outWire.write(result).text(persistedDataVersion()));
      return;
    }
    if (hashCode.contentEquals(methodName)) {
      write(b -> outWire.write(result).int32(b.hashCode()));
      return;
    }
    throw new IllegalStateException("String_Node_Str" + methodName);
  }
  finally {
    if (EventGroup.IS_DEBUG) {
      long len=outWire.bytes().position() - SIZE_OF_SIZE;
      if (len == 0) {
        System.out.println("String_Node_Str" + "String_Node_Str");
      }
 else {
        System.out.println("String_Node_Str" + "String_Node_Str" + Bytes.toDebugString(outWire.bytes(),SIZE_OF_SIZE,len));
      }
    }
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") void onEvent() throws StreamCorruptedException {
  long transactionId=inWire.read(Fields.transactionId).int64();
  timestamp=inWire.read(timeStamp).int64();
  channelId=inWire.read(Fields.channelId).int16();
  final StringBuilder methodName=Wires.acquireStringBuilder();
  inWire.read(Fields.methodName).text(methodName);
  if (!incompleteWork.isEmpty()) {
    Runnable runnable=incompleteWork.get(transactionId);
    if (runnable != null) {
      runnable.run();
      return;
    }
  }
  Bytes<?> bytes=outWire.bytes();
  try {
    if (putWithoutAcc.contentEquals(methodName)) {
      writeVoid(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2);
        bytesMap.put(reader,reader);
      }
);
      return;
    }
    if (keySet.contentEquals(methodName)) {
      writeChunked(transactionId,map -> map.keySet().iterator(),writeElement);
      return;
    }
    if (values.contentEquals(methodName)) {
      writeChunked(transactionId,map -> map.delegate.values().iterator(),writeElement);
      return;
    }
    if (entrySet.contentEquals(methodName)) {
      writeChunked(transactionId,m -> m.delegate.entrySet().iterator(),writeEntry);
      return;
    }
    if (entrySetRestricted.contentEquals(methodName)) {
      long maxEntries=inWire.read(arg1).int64();
      writeChunked(transactionId,m -> m.delegate.entrySet().iterator(),writeEntry,maxEntries);
      return;
    }
    if (putAll.contentEquals(methodName)) {
      putAll(transactionId);
      return;
    }
    outWire.write(Fields.transactionId).int64(transactionId);
    if (createChannel.contentEquals(methodName)) {
      writeVoid(() -> {
        short channelId1=inWire.read(arg1).int16();
        mapFactory.get().replicatedViaChannel(hub.createChannel(channelId1)).create();
        return null;
      }
);
      return;
    }
    if (EventId.remoteIdentifier.contentEquals(methodName)) {
      this.remoteIdentifier=inWire.read(result).int8();
      return;
    }
    if (longSize.contentEquals(methodName)) {
      write(b -> outWire.write(result).int64(b.longSize()));
      return;
    }
    if (isEmpty.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.isEmpty()));
      return;
    }
    if (containsKey.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.delegate.containsKey(toByteArray(inWire,arg1))));
      return;
    }
    if (containsValue.contentEquals(methodName)) {
      write(b -> outWire.write(result).bool(b.delegate.containsValue(toByteArray(inWire,arg1))));
      return;
    }
    if (get.contentEquals(methodName)) {
      writeValueUsingDelegate(map -> map.get(toByteArray(inWire,arg1)));
      return;
    }
    if (put.contentEquals(methodName)) {
      writeValue(b -> {
        final net.openhft.lang.io.Bytes reader=MapWireHandler.this.toReader(inWire,arg1,arg2);
        return b.put(reader,reader);
      }
);
      return;
    }
    if (remove.contentEquals(methodName)) {
      writeValue(b -> b.remove(toReader(inWire,arg1)));
      return;
    }
    if (clear.contentEquals(methodName)) {
      writeVoid(BytesChronicleMap::clear);
      return;
    }
    if (replace.contentEquals(methodName)) {
      write(bytesMap -> {
        final VanillaChronicleMap map=bytesMap.delegate;
        byte[] result=(byte[])map.replace(toByteArray(inWire,arg1),toByteArray(inWire,arg2));
        boolean isNull=result == null || result.length == 0;
        outWire.write(resultIsNull).bool(isNull);
        if (!isNull) {
          outWire.write(Fields.result);
          bytes.write(result);
        }
      }
);
      return;
    }
    if (replaceWithOldAndNewValue.contentEquals(methodName)) {
      write(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2,arg3);
        boolean result=bytesMap.replace(reader,reader,reader);
        outWire.write(Fields.result).bool(result);
      }
);
      return;
    }
    if (putIfAbsent.contentEquals(methodName)) {
      writeValueFromBytes(b -> {
        byte[] key=MapWireHandler.this.toByteArray(inWire,arg1);
        byte[] value=MapWireHandler.this.toByteArray(inWire,arg2);
        return ((Map<byte[],byte[]>)b.delegate).putIfAbsent(key,value);
      }
);
      return;
    }
    if (removeWithValue.contentEquals(methodName)) {
      write(bytesMap -> {
        final net.openhft.lang.io.Bytes reader=toReader(inWire,arg1,arg2);
        outWire.write(result).bool(bytesMap.remove(reader,reader));
      }
);
      return;
    }
    if (applicationVersion.contentEquals(methodName)) {
      write(b -> outWire.write(result).text(applicationVersion()));
      return;
    }
    if (persistedDataVersion.contentEquals(methodName)) {
      write(b -> outWire.write(result).text(persistedDataVersion()));
      return;
    }
    if (hashCode.contentEquals(methodName)) {
      write(b -> outWire.write(result).int32(b.hashCode()));
      return;
    }
    throw new IllegalStateException("String_Node_Str" + methodName);
  }
  finally {
    if (EventGroup.IS_DEBUG) {
      long len=bytes.position() - SIZE_OF_SIZE;
      if (len == 0) {
        System.out.println("String_Node_Str" + "String_Node_Str");
      }
 else {
        System.out.println("String_Node_Str" + "String_Node_Str" + Bytes.toDebugString(bytes,SIZE_OF_SIZE,len));
      }
    }
  }
}