Documentation of Project Coin features as implemented in the JDK 7 developer preview

Maurizio Cimadamore maurizio.cimadamore at
Wed Mar 9 05:25:48 PST 2011

On 09/03/11 12:57, Ulf Zibis wrote:
> Why do you allow whitespace between the "<" and">" of a diamond.
Good catch - I don't think this is a spec problem, as the grammar for 
diamond is defined as follows in the latest draft:




So it is more a compiler bug erroneously accepting spaces 'inside' the 
diamond. The compiler should be fixed.

> Is whitespace allowed for ++ operator e.g.?
> -Ulf
> Am 09.03.2011 07:40, schrieb Joe Darcy:
>> Joe Darcy wrote:
>>> Hello.
>>> I've posted documentation of the semantics of the Project Coin
>>> features as implemented in the JDK 7 developer preview,  b130, at:
>>> Before sending in comments or questions about a feature to coin-dev,
>>> please read the discussion section after a feature.  Many design
>>> considerations are discussed in those sections.  Additionally, some
>>> known bugs in the current implementation are noted in the text.  In
>>> particular, javac in the JDK 7 developer preview erroneously accepts
>>> diamond combined with non-generic classes and accepts some uses of
>>> diamond with anonymous inner classes. These bugs will be corrected in
>>> future builds.
>>> Happy reading,
>>> -Joe
>> No comments from the coin-dev readership on the posted documentation?
>> -Joe

More information about the coin-dev mailing list