cloning interfaces in Java
<p>I have a problem in Java:</p>

<p>I have an interface:</p>

<pre><code>public interface I extends Cloneable {

}
</code></pre>

<p>and an abstract class:</p>

<pre><code>public abstract class AbstractClass {

    private I i;

    public I i() {
     return (I)(i).clone();
    }
}
</code></pre>

<p>but the usage of clone() yields the following error:</p>

<blockquote>
  <p>The method clone() is undefined for
  the type I</p>
</blockquote>

<p>does anybody have any Idea how to get around this issue? the only fix I found is to add to I a new method: (I newI() ) that will clone I. is there a cleaner solution?</p>

<p>thanks.</p>
