How to call a generic method from a subclass static method
<p>Having some issues with genericity.
So, here is a simple version of what I'm dealing with:</p>

<p>I have one abstract class and two subclasses:</p>

<pre><code>public abstract class A {}
public class B extends A {}
public class C extends A {}
</code></pre>

<p>I'm writing writers for those classes, and I want to keep the same architecture, because all those have a lot in common. But I want to be able to call the writer without instantiating  it</p>

<pre><code>public abstract class AWriter&lt;T extends A&gt; {
  public void AWritingMethod(T arg) {}
}
public class BWriter extends AWriter&lt;B&gt; {
  public static void BWritingMethod(B arg) {
    AWritingMethod(arg)
  }
}
public class CWriter extends AWriter&lt;C&gt; {
  public static void CWritingMethod(C arg) {
    AWritingMethod(arg)
  }
}
</code></pre>

<p>Obviously, I can't call AWritingMethod in BWriter and CWriter, but how could I do something like that to keep most of the work in AWriter, while still keeping BWritingMethod and CWritingMethod static ?</p>

<p>Thanks already !</p>

<p>LD</p>