On Java7's diamond, clarification needed
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9773733/double-brace-initialisation-anonymous-inner-class-with-diamond-operator">Double brace initialisation (anonymous inner class) with diamond operator</a>  </p>
</blockquote>



<p>Using Java 7, why is the following a problem</p>

<pre><code>final List&lt;String&gt; a = new ArrayList&lt;&gt;() {
    {
        add("word");
    }
};
</code></pre>

<p>Explicit type declaration is needed as in</p>

<pre><code>final List&lt;String&gt; a = new ArrayList&lt;String&gt;() {
    {
        add("word");
    }
};
</code></pre>
