Generics are a compile-time artifact. In your example there is only one "MyGeneric" class at run-time and only one instance of the static variable "i". Mentioning the class parameter when trying to access it is pointless and hence wrong.
Joined: Apr 30, 2006
Originally posted by Garrett Rowe:
Thanks Gerrett, didn't think about trying it this way.
subject: Accessing a static variable from a generic class?