Consuming Java Generic in Kotlin - Java does not require specific generic, but Kotlin does : <p>I have this Java class that I want to use from Kotlin code.</p>

<pre><code>class JavaDialogBuilder&lt;B extends JavaDialogBuilder&gt;
</code></pre>

<p>This java code compiles fine:</p>

<pre><code>void javaTest() {
    new JavaDialogBuilder();
}
</code></pre>

<p>Converting it to the Kotlin equivalent code does not.</p>

<pre><code>fun javaTest() {
        JavaDialogBuilder() // &lt;-- compilation error here
}
</code></pre>

<p>The compilation error is:</p>

<pre><code>Type inference failed: Not enough information to infer parameter B in 

constructor JavaDialogBuilder&lt;B : (JavaDialogBuilder&lt;JavaDialogBuilder&lt;*&gt;&gt;..JavaDialogBuilder&lt;out JavaDialogBuilder&lt;*&gt;&gt;?)&gt;
( )

Please specify it explicitly.
</code></pre>

<p>Is there a way to fix this?</p>
