Fix backwards compatibility
This commit is contained in:
parent
8dd4025248
commit
19e7611061
|
@ -380,6 +380,9 @@ public void simulationFinishedLoading() {
|
||||||
if (destClassName == null || destClassName.isEmpty()) {
|
if (destClassName == null || destClassName.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/* Backwards compatibility: se.sics -> org.contikios */
|
||||||
|
destClassName = destClassName.replaceFirst("^se\\.sics", "org.contikios");
|
||||||
|
|
||||||
Class<? extends DGRMDestinationRadio> destClass =
|
Class<? extends DGRMDestinationRadio> destClass =
|
||||||
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
|
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
|
||||||
if (destClass == null) {
|
if (destClass == null) {
|
||||||
|
|
Loading…
Reference in a new issue