Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 33468 invoked from network); 15 Aug 2005 08:36:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2005 08:36:17 -0000 Received: (qmail 93636 invoked by uid 500); 15 Aug 2005 08:36:13 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 93506 invoked by uid 500); 15 Aug 2005 08:36:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 93493 invoked by uid 99); 15 Aug 2005 08:36:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 01:36:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.209.148.130] (HELO dd2020.kasserver.com) (81.209.148.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2005 01:36:31 -0700 Received: from [192.168.1.100] (unknown [81.2.149.2]) by dd2020.kasserver.com (Postfix) with ESMTP id 3CD802F0AA for ; Mon, 15 Aug 2005 10:36:08 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: References: Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-5--241117385" Message-Id: Content-Transfer-Encoding: 7bit From: Torsten Curdt Subject: Re: [jci] initial compiling Date: Mon, 15 Aug 2005 10:36:10 +0200 To: "Jakarta Commons Developers List" X-Pgp-Agent: GPGMail 1.1.1 (Tiger) X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-5--241117385 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > I have a problem with loading a class immediately after the setup > of the > CompilingClassLoader. With a setup like in the TestCases using a > signal object > it does not work (I get ClassNotFoundException), because the CCL > does release a > reload() event immediately after setup - before my files have been > compiled. Why would you expect the classes be available right away? It's an asynchronous process. But maybe explain your environment a bit more. There is a bug in the listener behavior for the ReloadingClassLoader (it would require to signal the stop, not the reload. see the FIXME inside the code) but thats fine for the CCL. If the files are already on disk the start of the CL should start the fam that will trigger the compilation after the first run. The "hasReloaded" notification should happen after the compilation has finished and your classes should be available after that. Please try the latest version and report back. I did some substantial changes over the weekend. cheers -- Torsten --Apple-Mail-5--241117385 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDAFP6BGM6V3wgCUERAoZAAJ96fi7oqzcl1eQz8lneyiPMCFbe5ACeNEwA XCpe2KiAwBhEjpow8rON7LQ= =wHAe -----END PGP SIGNATURE----- --Apple-Mail-5--241117385--