[committed] allow assert in inner class

Jeff Sturm jsturm@one-point.com
Thu Feb 26 18:08:00 GMT 2004


On 26 Feb 2004, Tom Tromey wrote:
>
> Eric> And does your patch work for asserts inside an inner class of an
> Eric> interface, since interfaces can't have a static helper?
>
> Does jikes generate a new static package-private inner class of the
> interface in this situation?  Ugh.

Yes, as does gcj for class literals.  See PR12857.

build_assertion really should use build_incomplete_class_ref, not
build_dot_class_method_invocation.  The former already handles the case
where GET_CPC is an inner class or interface.

Jeff



More information about the Java mailing list