why does Object.class compile?
posted 12 years ago
Can someone tell me where the .class attribute is documented? It is not in the api and not even in Object.java source code. Obviously Object.getClass() works and is documented. I've seen the .class attribute used quite frequently in production code and it irks me that it is just used and not documented. Perhaps it is in the JLS? I searched once but couldn't find it.