<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMarker_interface_pattern</id>
	<title>Talk:Marker interface pattern - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Talk%3AMarker_interface_pattern"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Marker_interface_pattern&amp;action=history"/>
	<updated>2026-10-25T22:03:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Marker_interface_pattern&amp;diff=1080241&amp;oldid=prev</id>
		<title>imported&gt;Cewbot: Maintain {{WPBS}} and vital articles: 2 WikiProject templates. Create {{WPBS}}. Keep majority rating &quot;Start&quot; in {{WPBS}}. Remove 2 same ratings as {{WPBS}} in {{WikiProject Java}}, {{WikiProject Computer science}}.</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Talk:Marker_interface_pattern&amp;diff=1080241&amp;oldid=prev"/>
		<updated>2024-02-05T21:56:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki143/index.php?title=User:Cewbot/log/20200122/configuration&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Cewbot/log/20200122/configuration (page does not exist)&quot;&gt;Maintain {{WPBS}} and vital articles&lt;/a&gt;: 2 WikiProject templates. Create {{WPBS}}. Keep majority rating &amp;quot;Start&amp;quot; in {{WPBS}}. Remove 2 same ratings as {{WPBS}} in {{WikiProject Java}}, {{WikiProject Computer science}}.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{WikiProject banner shell|class=Start|&lt;br /&gt;
{{WikiProject Java|importance=low}}&lt;br /&gt;
{{WikiProject Computer science|importance=low}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Untitled==&lt;br /&gt;
Maybe a bit offtopic, but I do not see the point having the clone() method in Object and a seperate interface making a call to clone &amp;quot;valid&amp;quot;. Where is the advantage over letting Clonable have (is this correct english?) a method clone() (making this a non-marker interface) or is this for historical reasons? :) A better example for a marker interface would be appreciated.&lt;br /&gt;
:I agree. It&amp;#039;s exactly what I thought when I read the article. [[User:Alf Boggis|Alf Boggis]] [[User_talk:Alf_Boggis|(talk)]] 14:26, 8 November 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s because it isn&amp;#039;t why Cloneable exists. Nowhere do the [http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cloneable.html docs] say that Cloneable &amp;quot;indicates that the cloning functionality is actually supported in a proper manner&amp;quot;. In fact, they&amp;#039;re very specific about why Cloneable is used, and that it gives specific information to Object.clone().&lt;br /&gt;
&lt;br /&gt;
Will be editing the article once I figure out Wikipedia&amp;#039;s markup (rhetorical question: why do all wikis have a different set of codes?). Serializable is a better example of a marker interface, because Java provides multiple ways to write an object.&lt;br /&gt;
&lt;br /&gt;
== Introduction paragraph ==&lt;br /&gt;
&lt;br /&gt;
In the last sentence of the introduction paragraph, the statement &amp;quot;If none of these tests pass, the method throws NotSerializableException.&amp;quot; is made. My knowledge of java isn&amp;#039;t that strong, but should it be &amp;quot;If &amp;#039;&amp;#039;&amp;#039;any&amp;#039;&amp;#039;&amp;#039; of these tests &amp;#039;&amp;#039;&amp;#039;fail&amp;#039;&amp;#039;&amp;#039;, the method throws NotSerializableException.&amp;quot;? --[[User:WikiWizard|WikiWizard]] ([[User talk:WikiWizard|talk]]) 00:29, 26 March 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Further clarification needed ==&lt;br /&gt;
&lt;br /&gt;
I think a further clarification should be added &amp;#039;&amp;#039;why&amp;#039;&amp;#039; an interface is defined to be a marker interface. For instance, it is not clear to every reader &lt;br /&gt;
&lt;br /&gt;
*why the &amp;lt;code&amp;gt;Serializable&amp;lt;/code&amp;gt; interface does not have a &amp;lt;code&amp;gt;serialize(…)&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;deserialize(…)&amp;lt;/code&amp;gt; method, say, so that all the &amp;quot;marked&amp;quot; classes have the same methods for the same task, and&lt;br /&gt;
*why &amp;lt;code&amp;gt;JavaBeans&amp;lt;/code&amp;gt; are not using a marker interface to mark them as beans as such in a conspicious way.&lt;br /&gt;
&lt;br /&gt;
[[User:SAE1962|SAE1962]] ([[User talk:SAE1962|talk]]) 07:34, 5 May 2008 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Critique ==&lt;br /&gt;
The critique section imho shows an inappropriate example. The scenario appears to be a liskov violation. If this is resolved, the use of the tagging interface is perfectly sane in the example. This should be at least mentioned. On the other hand - and that would imho make a good critique point - if some state or ghost intrinsic to a class needs to be expressed with a marker and is not handled by other means, this smells a lot like there&amp;#039;s a refactoring needed. If you deal with classes members &amp;quot;in a specific way&amp;quot; depending on an empty interface, this makes the use of the API which defines the members in the first place unsafe - and that should of course be avoided.  &amp;lt;span style=&amp;quot;font-size: smaller;&amp;quot; class=&amp;quot;autosigned&amp;quot;&amp;gt;— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/193.32.64.180|193.32.64.180]] ([[User talk:193.32.64.180|talk]]) 09:37, 9 August 2013 (UTC)&amp;lt;/span&amp;gt;&amp;lt;!-- Template:Unsigned IP --&amp;gt; &amp;lt;!--Autosigned by SineBot--&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Cewbot</name></author>
	</entry>
</feed>