------- Comment #23 from aph at gcc dot gnu dot org 2005-11-17 13:46 ------- mm, I was wrong about static fields.
The problem is that a JV_CONSTANT_Fieldref constant pool entry points to a JV_CONSTANT_Class, and at the present time we attempt to resolve that JV_CONSTANT_Class reference at link time rather than at runtime. If we had used a JV_CONSTANT_String instead of a JV_CONSTANT_Class to represent a class in a JV_CONSTANT_Fieldref this would have worked. Oh well. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616