If there's an array of an interface that implements Streamable on a Streamable, we created a Streamer for it. We throw a RuntimeException when we don't find a constructor, so skip our init in creating Streamers for interfaces
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6561 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -325,6 +325,9 @@ public abstract class Streamer
|
|||||||
protected ClassStreamer (Class<?> target)
|
protected ClassStreamer (Class<?> target)
|
||||||
{
|
{
|
||||||
_target = target;
|
_target = target;
|
||||||
|
if (_target.isInterface()) {
|
||||||
|
return;// Don't try to find a constructor if we don't have one
|
||||||
|
}
|
||||||
initConstructor();
|
initConstructor();
|
||||||
initMarshallers();
|
initMarshallers();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user