Am 27.08.2008 13:33, Kay Röpke schrieb: > [...] > Further poking around seems to indicate some compiler change between > 1.4 and 1.5 with regards to Foo.class. > [...]
Yes, the change is documented on http://java.sun.com/j2se/1.5.0/compatibility.html in section "Incompatibilities in Java 2 Platform Standard Edition 5.0 (since 1.4.2)", item 5. > Using .class (which is syntax, not a field) doesn't seem to fit into > the section of the spec you referred to, so I'm afraid that's not > really helpful to understand this :( > [...] Why aren't they helpful? The cited section of the spec lists the reasons for initialization of a class and referring to a class literal (e.g. HomePage.class) is not listed. Therefore the Java Language Specification doesn't promise that a class literal will trigger class initialization. That's what I wanted to say. This is also documented in the link above. Bye, Dennis Benzinger List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
