Merge remote-tracking branch 'origin/master'

This commit is contained in:
fmittag committed 2012-06-15 16:32:31 +02:00
commit 99a77f591a
3 files changed
+8 -6

No files matched your search

@@ -6,7 +6,6 @@ import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
@@ -29,10 +28,6 @@ import com.sap.sailing.domain.common.impl.Util.Pair;
import com.sap.sailing.domain.leaderboard.impl.ResultDiscardingRuleImpl;
public class OfflineSerializationTest extends AbstractSerializationTest {
private static class SerializableObjectWithJavaLangObjectHashCode implements Serializable {
private static final long serialVersionUID = 696920899165910830L;
}
/**
* Bug 769 was based on an inconsistency of a cached hash code in Pair. The same problem existed for Triple.
* Serialization changes the Object IDs of the objects contained and therefore the hash code based on this
@@ -0,0 +1,7 @@
package com.sap.sailing.domain.test;
import java.io.Serializable;
public class SerializableObjectWithJavaLangObjectHashCode implements Serializable {
private static final long serialVersionUID = 696920899165910830L;
}
@@ -145,7 +145,7 @@ public class ReplicationServiceImpl implements ReplicationService, OperationExec
private void broadcastOperation(RacingEventServiceOperation<?> operation) throws Exception {
Topic topic = getReplicationTopic();
Session session = messageBrokerManager.getSession();
getMessageProducer(topic).setDeliveryMode(DeliveryMode.PERSISTENT);
getMessageProducer(topic).setDeliveryMode(DeliveryMode.NON_PERSISTENT);
BytesMessage operationAsMessage = session.createBytesMessage();
// serialize operation into message
ByteArrayOutputStream bos = new ByteArrayOutputStream();