Yuta HIGUCHI

Workaround for ReflectASM bug.

- When spanning multiple class loaders,
  Object cannot be instantiated from 'protected' constructor.

Change-Id: Iacb33755ccf3da3d8ec28623b9d3aaa28870208d
......@@ -96,4 +96,13 @@ public class DefaultDeviceDescription extends AbstractDescription
.toString();
}
// default constructor for serialization
private DefaultDeviceDescription() {
this.uri = null;
this.type = null;
this.manufacturer = null;
this.hwVersion = null;
this.swVersion = null;
this.serialNumber = null;
}
}
......
......@@ -48,4 +48,9 @@ public class DefaultPortDescription extends AbstractDescription
return isEnabled;
}
// default constructor for serialization
private DefaultPortDescription() {
this.number = null;
this.isEnabled = false;
}
}
......
......@@ -82,7 +82,7 @@ public final class Timestamped<T> {
// Default constructor for serialization
@Deprecated
protected Timestamped() {
private Timestamped() {
this.value = null;
this.timestamp = null;
}
......