From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9625 invoked by alias); 16 Nov 2005 17:20:22 -0000 Received: (qmail 9608 invoked by uid 48); 16 Nov 2005 17:20:21 -0000 Date: Wed, 16 Nov 2005 17:20:00 -0000 Message-ID: <20051116172021.9607.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: java-prs@gcc.gnu.org From: "aph at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2005-q4/txt/msg00360.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