This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Patch for _Jv_CheckOrCreateLoadingConstraint
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: Wed, 11 Mar 2009 17:37:56 +0000
- Subject: Patch for _Jv_CheckOrCreateLoadingConstraint
Maven2 doesn't build at the moment because our code to check the loading
constraints (Section 5.3.4, JVM Spec Second Edition) is wrong.
Tom, is this the correct fix?
Andrew.
2009-03-11 Tom Tromey <tromey@redhat.com>
* link.cc (_Jv_Linker::find_field): Pass the field_type to
_Jv_CheckOrCreateLoadingConstraint, not the class that is
requesting the field.
--- link.cc~ 2009-01-14 11:10:39.000000000 +0000
+++ link.cc 2009-03-11 17:33:31.000000000 +0000
@@ -248,7 +248,7 @@ _Jv_Linker::find_field (jclass klass, jc
// Note that the field returned by find_field_helper is always
// resolved. However, we still use the constraint mechanism
// because this may affect other lookups.
- _Jv_CheckOrCreateLoadingConstraint (klass, (*found_class)->loader);
+ _Jv_CheckOrCreateLoadingConstraint (field_type, (*found_class)->loader);
}
else
{