[committed] allow assert in inner class

Per Bothner per@bothner.com
Thu Feb 26 05:35:00 GMT 2004


If you use assert, the compiler generates some code
that includes doing THIS_CLASS.class, which in turn
is implemented by a static helper method named class$.
If THIS_CLASS was an inner class, the compiler would
lose because static methods aren't allowed in inner classes.
The solution (which matches JDK) is to move the class$
helper method to the outer class.
Tested on Fedora and checked into mainline.
-- 
	--Per Bothner
per@bothner.com http://per.bothner.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: assert-inner.patch
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040226/8819c8a0/attachment.ksh>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /