From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9631 invoked by alias); 16 Nov 2005 17:20:23 -0000 Received: (qmail 9587 invoked by uid 48); 16 Nov 2005 17:20:21 -0000 Date: Wed, 16 Nov 2005 17:20:00 -0000 Message-ID: <20051116172021.9586.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "aph at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg02321.txt.bz2 List-Id: ------- Comment #21 from aph at gcc dot gnu dot org 2005-11-16 17:20 ------- Accesses to static fields should be fixed already when compiling BC. We generate a call to _Jv_ResolvePoolEntry(Class, int) for every static field reference, which resolves the target class and returns a pointer to the field. If, for some reason, we're resolving the field too soon, then that is a new bug -- it has worked before now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616