array and diamond (original) (raw)
Rémi Forax forax at univ-mlv.fr
Sun Dec 11 15:26:17 UTC 2011
- Previous message: array and diamond
- Next message: 6990617: Regular expression doesn't match if unicode character next to a digit.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/11/2011 12:16 PM, David Holmes wrote:
On 10/12/2011 8:56 AM, Rémi Forax wrote:
Is there a reason why the diamond syntax can't be used with an array ?
List<?>[] list = new List<>[12]; It can in Java 7. That's the bug that we just discussed in regard to the java.util.concurrent code cleanup where I suggested to use: HashEntry<K,V>[] newTable = new HashEntry<>[1]; to avoid the explicit cast. ;-) David
I've put my desktop in a Faraday cage and cut the internet link to be sure there will be no auto-update even over the air :)
Rémi
- Previous message: array and diamond
- Next message: 6990617: Regular expression doesn't match if unicode character next to a digit.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]