Patch for _Jv_CheckOrCreateLoadingConstraint
Andrew Haley
aph@redhat.com
Wed Mar 11 17:38:00 GMT 2009
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
{
More information about the Java
mailing list