gwt /
gwt /
78f70868e8f51a530abb5d37364b55afa9157809 Removes trivially-delegating clinits, plus some.
1) A trivial clinit that merely delegates to a superclass doesn't emit code; instead, call sites that would have targeted the subclass will target the superclass instead.
2) As an added bonus, in situations where you have two classes that sharing a supertype, where only the supertype has a clinit, calls between the two classes won't trigger clinit checks anymore. This also works when a supetype calls into a subtype when only the supertype has a clinit, which is exactly the case that enums are currently tripping over.
http://gwt-code-reviews.appspot.com/184802/show
Review by: spoon
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7868 8db76d5a-ed1c-0410-87a9-c151d255dfc7
5 files changed