* ICMD_{GET,PUT}STATIC: print (NOT INITIALIZED) for uninitialized classes
authortwisti <none@none>
Sat, 25 Jun 2005 13:31:16 +0000 (13:31 +0000)
committertwisti <none@none>
Sat, 25 Jun 2005 13:31:16 +0000 (13:31 +0000)
src/vm/jit/stack.c

index 29f5b5d1b7546ed5c43313af1066d4187bde095f..b9538b32e449eec07545f4bc98b202babc4b6d1a 100644 (file)
@@ -30,7 +30,7 @@
             Christian Thalinger
                        Christian Ullrich
 
-   $Id: stack.c 2823 2005-06-25 13:29:42Z twisti $
+   $Id: stack.c 2824 2005-06-25 13:31:16Z twisti $
 
 */
 
@@ -2638,9 +2638,12 @@ void show_icmd(instruction *iptr, bool deadcode)
 
        case ICMD_PUTSTATIC:
        case ICMD_GETSTATIC:
-               if (iptr->val.a)
-                       printf(" ");
-               else
+               if (iptr->val.a) {
+                       if (!((fieldinfo *) iptr->val.a)->class->initialized)
+                               printf(" (NOT INITIALIZED) ");
+                       else
+                               printf(" ");
+               } else
                        printf(" (NOT RESOLVED) ");
                utf_display_classname(((unresolved_field *) iptr->target)->fieldref->classref->name);
                printf(".");