natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before lookin...
authorAndrew Haley <aph@redhat.com>
Fri, 9 Jan 2004 17:10:43 +0000 (17:10 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 9 Jan 2004 17:10:43 +0000 (17:10 +0000)
2004-01-09  Andrew Haley  <aph@redhat.com>

* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
a Utf8Const field before looking at its class.

From-SVN: r75591

libjava/ChangeLog
libjava/java/lang/natClassLoader.cc

index 8a04fae..5a4860b 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-09  Andrew Haley  <aph@redhat.com>
+
+       * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve
+       a Utf8Const field before looking at its class.
+
 2004-01-09  Michael Koch  <konqueror@gmx.de>
 
        * javax/print/attribute/standard/DocumentName.java,
index 5e7c943..4f15930 100644 (file)
@@ -262,6 +262,7 @@ _Jv_PrepareCompiledClass (jclass klass)
          int mod = f->getModifiers ();
          // If we have a static String field with a non-null initial
          // value, we know it points to a Utf8Const.
+         _Jv_ResolveField(f, klass->loader);
          if (f->getClass () == &java::lang::String::class$
              && java::lang::reflect::Modifier::isStatic (mod))
            {