gcj/129
Alexandre Petit-Bianco
apbianco@cygnus.com
Fri Apr 28 15:00:00 GMT 2000
The following reply was made to PR gcj/129; it has been noted by GNATS.
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: Java Gnats Server <java-gnats@sourceware.cygnus.com>
Cc:
Subject: Re: gcj/129
Date: Fri, 28 Apr 2000 14:50:54 -0700 (PDT)
Tom Tromey writes:
> However, in this case, we don't call that function for
> support.PR129_A. I'm not sure why, but I assume it has something to
> do with the fact that we aren't compiling that class -- just reading
> it.
Yes. I have the following patch, but the runtime fails because we're
not initializing class `A' before we use `strArr'. This needs to be
fixed.
./A
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.157
diff -u -p -r1.157 parse.y
--- parse.y 2000/04/25 22:14:53 1.157
+++ parse.y 2000/04/28 21:49:02
@@ -4008,6 +4010,10 @@ lookup_field_wrapper (class, name)
FIELD_LOCAL_ALIAS_USED (decl) = 1;
}
+ if (decl && decl != error_mark_node
+ && !DECL_RTL (decl) && FIELD_STATIC (decl) && type != current_class)
+ build_field_ref (NULL_TREE, type, DECL_NAME (decl));
+
java_parser_context_restore_global ();
return decl == error_mark_node ? NULL : decl;
}
More information about the Java-prs
mailing list