How to create an immutable list in Kotlin that is also an immutable list in Java? : <p>I have a Java/Kotlin interop problem. A Kotlin immutable list is compiled into a normal java.util.ArrayList that is mutable!</p>

<p>Kotlin (library):</p>

<pre><code>class A {
  val items: List&lt;Item&gt; = ArrayList()
}
</code></pre>

<p>Java (consumer):</p>

<pre><code>A a = new A();
a.getItems().add(new Item());   // Compiles and runs but I wish to fail or throw
</code></pre>

<p>How to make my Kotlin class fully immutable from Java perspective too?</p>
