Fix backwards compatibility

This commit is contained in:
Moritz 'Morty' Strübe 2014-02-20 12:59:12 +01:00
parent 8dd4025248
commit 19e7611061

View file

@ -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<? extends DGRMDestinationRadio> destClass =
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
if (destClass == null) {