Static fields in specialized classes

Brian Goetz brian.goetz at
Tue Oct 14 18:13:13 UTC 2014

OK, now that this is settled...  can I get some input on the original 
question?  Can anyone else thing of code that will need to be adjusted 
to support this view of the world?

On 10/14/2014 10:46 AM, Stephen Colebourne wrote:
> On 13 October 2014 19:19, Brian Goetz <brian.goetz at> wrote:
>> Consider:
>> class Foo<any T> {
>>      public final static int x = System.currentTimeMillis();
>> }
>> Regardless of whether our implementation is by specialization or erasure (or
>> both), logically there is just *one* field 'x' for any instantiation Foo<T>.
> Just to note that I support this view of the world. I think the
> alternatives would be surprising.

More information about the valhalla-dev mailing list