Charles Chan
Committed by Gerrit Code Review

Fix ClassCastException

Change-Id: I1c9e6a37c6871bd8186d5ab19a87268d9250aacd
......@@ -1093,7 +1093,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour
* case, we refer to this as a dummy group.
*
*/
private class SpringOpenGroup implements NextGroup {
protected class SpringOpenGroup implements NextGroup {
private final boolean dummy;
private final GroupKey key;
private final TrafficTreatment treatment;
......
......@@ -42,7 +42,6 @@ import org.onosproject.net.flowobjective.FilteringObjective;
import org.onosproject.net.flowobjective.ForwardingObjective;
import org.onosproject.net.flowobjective.ObjectiveError;
import org.onosproject.net.group.Group;
import org.onosproject.net.group.GroupKey;
/**
* Spring-open driver implementation for Dell hardware switches.
......@@ -137,9 +136,8 @@ public class SpringOpenTTPDell extends SpringOpenTTP {
NextGroup next = flowObjectiveStore.getNextGroup(fwd.nextId());
if (next != null) {
GroupKey key = appKryo.deserialize(next.data());
Group group = groupService.getGroup(deviceId, key);
SpringOpenGroup soGroup = appKryo.deserialize(next.data());
Group group = groupService.getGroup(deviceId, soGroup.key());
if (group == null) {
log.warn("The group left!");
......