title: "Accidental override: The following declarations have the same JVM signature" when implementing Java interface
body: <p>I faced the following error trying to extend RuntimeException and implement <a href="https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/GraphQLError.java" rel="noreferrer">GraphQLError</a> interface, defined in Java, from my Kotlin code. This is the error:</p>
  <blockquote>
  <p>Accidental override: The following declarations have the same JVM signature (getMessage()Ljava.lang.string;):</p>
  <p><code>public open fun &lt;get-message&gt;(): String? defined in NegativeCountException</code>
  <code>public open fun getMessage(): String? defined in NegativeCountException</code></p>
  </blockquote>
  <p>The following is my code:</p>
  <pre><code>class NegativeCountException() : RuntimeException(), GraphQLError {
    override fun getMessage(): String? {
      TODO(&quot;not implemented&quot;)
    }
    &lt;...&gt;
  }
  </code></pre>
  <p>where <code>GraphQLError</code> is an interface, defined in Java as shown bellow:</p>
  <pre><code>public interface GraphQLError {
    String getMessage();
    &lt;...&gt;
  }
  </code></pre>
  <p>Seems like it clashes with <code>getMessage()</code> defined in <code>Throwable</code>.</p>
  <p>I can't change code of the interface, because it comes from a library.</p>
  <p><strong>How can I create my own runtime exception, that will implement <a href="https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/GraphQLError.java" rel="noreferrer">GraphQLError</a>?</strong></p>
  <hr />
  <p>PS: I also tried the following, and received a very similar error:</p>
  <pre><code>class NegativeCountException(override val message: String?) : RuntimeException(), GraphQLError {
    &lt;...&gt;
  }
  </code></pre>