From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21649 invoked by alias); 11 Mar 2006 18:50:27 -0000 Received: (qmail 21632 invoked by uid 22791); 11 Mar 2006 18:50:26 -0000 X-Spam-Check-By: sourceware.org Received: from smtp1-g19.free.fr (HELO smtp1-g19.free.fr) (212.27.42.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 11 Mar 2006 18:50:24 +0000 Received: from [10.0.0.4] (pcedev.com [82.234.81.179]) by smtp1-g19.free.fr (Postfix) with ESMTP id 524C29AD3E; Sat, 11 Mar 2006 19:50:21 +0100 (CET) Message-ID: <44131BEE.4080103@pcedev.com> Date: Sat, 11 Mar 2006 18:50:00 -0000 From: Olivier Jolly User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) MIME-Version: 1.0 To: jeroen@frijters.net CC: mauve-discuss@sources.redhat.com, Mauve Patch List Subject: runFinalization in Classloader.initialize doesn't run on cacao Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact mauve-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00057.txt.bz2 Hi, while wandering around with Classloaders, I found that the teslet gnu.testlet.java.lang.Classloader.initialize wasn't running with Cacao. It seems that in the beginning of the test method, it creates an anonymous Classloader and then call System.gc() and System.runFinalization() and expects the finalizer to be ran to set a singleton like variable holder. While this is ok in jamvm and sun jre 1.5.0, cacao doesn't run the finalizer since runFinalization only gives a hint and not a mandatory order, so it is compliant. My question is whether I'm missing something and this way of doing brings something in this test or it could be rewritten in a simpler way, more compliant with the various jvm. Thanks in advance Cheers +Olivier