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.
posted 11 years ago
Originally posted by Garrett Rowe:
Thanks Gerrett, didn't think about trying it this way.
I am Arthur, King of the Britons. And this is a tiny ad: