From 19e7611061b640e517923c62d8fffa65da83ed58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20=27Morty=27=20Str=C3=BCbe?= Date: Thu, 20 Feb 2014 12:59:12 +0100 Subject: [PATCH] Fix backwards compatibility --- .../org/contikios/cooja/radiomediums/DirectedGraphMedium.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java b/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java index c9bac3f0d..48d90a0f8 100644 --- a/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java +++ b/tools/cooja/java/org/contikios/cooja/radiomediums/DirectedGraphMedium.java @@ -380,6 +380,9 @@ public void simulationFinishedLoading() { if (destClassName == null || destClassName.isEmpty()) { continue; } + /* Backwards compatibility: se.sics -> org.contikios */ + destClassName = destClassName.replaceFirst("^se\\.sics", "org.contikios"); + Class destClass = simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName); if (destClass == null) {