{"id":5017,"date":"2014-03-30T17:58:10","date_gmt":"2014-03-30T17:58:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/under-what-circumstance-would-you-want-your-child-class-to-avoid-serializable-if-parent-is-serializable-collection-of-common-programming-errors\/"},"modified":"2014-03-30T17:58:10","modified_gmt":"2014-03-30T17:58:10","slug":"under-what-circumstance-would-you-want-your-child-class-to-avoid-serializable-if-parent-is-serializable-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/under-what-circumstance-would-you-want-your-child-class-to-avoid-serializable-if-parent-is-serializable-collection-of-common-programming-errors\/","title":{"rendered":"Under what circumstance would you want your child class to avoid serializable if parent is serializable?-Collection of common programming errors"},"content":{"rendered":"<p>The probable reason this might have happened is that the parent class may have originally been designed <em>not<\/em> as a parent class, but rather just normal serializable class. So later on, someone created a child class that wasn&#8217;t serializable &#8211; that doesn&#8217;t mean that the parent class has a &#8220;design flaw&#8221;.<\/p>\n<p>If you may have a particular child class that isn&#8217;t <code>Serializable<\/code>, the only downside is a possible runtime exception if serialization is attempted. If you know that your non-serializable child class won&#8217;t ever be serialized by your application, then there&#8217;s no real problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The probable reason this might have happened is that the parent class may have originally been designed not as a parent class, but rather just normal serializable class. So later on, someone created a child class that wasn&#8217;t serializable &#8211; that doesn&#8217;t mean that the parent class has a &#8220;design flaw&#8221;. If you may have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5017","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5017"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5017\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}