title: Fixing "has the same erasure as..but does not override" for subclass w/ same method signature but new implementation?
body: <p>In java I have a class which extends <code>JsonProvider.java</code> as <code>RootlessJsonProvider.java</code> that allows the class to work with JSON without a root element.</p>
  
  <p>I'm attempting to override the method <code>readFrom</code> which is still defined with the exact same method signature as the class that implements it:</p>
  
  <pre><code>    @Override
      public Object readFrom(final Class&lt;Object&gt; type, final Type genericType,
              final Annotation[] anns, final MediaType mtype,
              final MultivaluedMap&lt;String, String&gt; headers,
              final InputStream inputStream) {
  
          InputStream inputStreamNew = null;
  
          if (type != null) {
              final XmlRootElement rootElement = type
                      .getAnnotation(XmlRootElement.class);
              if (rootElement != null) {
                  inputStreamNew = transformStreamForDropRootElement(rootElement,
                          inputStream);
              }
          }
  
          return super.readFrom(type, genericType, anns, mtype,
                  headers, inputStreamNew);
      }
  </code></pre>
  
  <p>But all that's changed is the implementation, to allow rootless json usage.</p>
  
  <p>The error that comes with it is: </p>
  
  <pre><code>The method readFrom(Class&lt;Object&gt;, Type, Annotation[], MediaType, MultivaluedMap&lt;String,String&gt;, InputStream) of type RootlessJsonProvider has the same erasure as readFrom(Class, Type, Annotation[], MediaType, MultivaluedMap, InputStream) of type MessageBodyReader but does not override it
  </code></pre>
  
  <p>Changing the method name also doesn't work because it's usage is off the implementation. </p>
  
  <p>i.e.</p>
  
  <pre><code>JsonProvider rootlessProvier = new RootlessJsonProvder();
  
  rootlessProvider.rootlessReadFrom(....); //ERROR &lt;---- this method doesn't exist as it's not defined in JsonProvider.java
  </code></pre>
  
  <p>There aren't any parameters based on how this method is used that's less generic of a type, so how can I resolve this error?</p>
  
  <p>Edit:</p>
  
  <pre><code>JsonProvider.java
  </code></pre>
  
  <p>part of cxf-jaxrs version 3.1.5</p>