PR java/36247:
* class.c (build_class_ref): Initialize this_classdollar when
From-SVN: r136787
+2008-06-14 Tom Tromey <tromey@redhat.com>
+
+ PR java/36247:
+ * class.c (build_class_ref): Initialize this_classdollar when
+ needed.
+
2008-05-23 Andrew Haley <aph@redhat.com>
* jcf-parse.c (give_name_to_class): Call find_sourcefile to find full
return build_indirect_class_ref (type);
if (type == output_class && flag_indirect_classes)
- return this_classdollar;
+ {
+ /* This can be NULL if we see a JNI stub before we see any
+ other method. */
+ if (! this_classdollar)
+ this_classdollar = build_classdollar_field (output_class);
+ return this_classdollar;
+ }
if (TREE_CODE (type) == RECORD_TYPE)
return build_static_class_ref (type);