------- Additional Comments From rmathew at gcc dot gnu dot org  2005-05-19 
22:57 -------
I note that GCJ already seems to have the infrastructure in place to do this and
possibly used to work properly for this case. For example, see the
build_outer_field_access(), outer_field_access_p(), etc. methods in parse.y. The
patch to turn this on seems to have been:

2000-02-03  Alexandre Petit-Bianco  <[EMAIL PROTECTED]>

        * java-tree.h (FIELD_THISN): New macro.
        * jcf-write.c (append_synthetic_attribute): New function.
        (generate_classfile): Set "Synthetic" attribute on this$<n>,
        val$<name> fields, access$<n> and $finit$ methods. Fixed indentation.
        * parse.y (add_inner_class_fields): Set FIELD_THISN for created
        this$<n> fields.
        (build_outer_field_access): Turned on access functions usage and
        generation when compiling to bytecode.
        (maybe_use_access_method): Likewise.

As with other such things in GCJ, this seems to have bitrotted over time. :-(

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19870

Reply via email to