Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 26352 invoked from network); 20 Apr 2006 08:29:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 08:29:53 -0000 Received: (qmail 79023 invoked by uid 500); 20 Apr 2006 08:29:49 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 78956 invoked by uid 500); 20 Apr 2006 08:29:48 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 78945 invoked by uid 99); 20 Apr 2006 08:29:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 01:29:48 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of george.c.harley@googlemail.com designates 72.14.214.197 as permitted sender) Received: from [72.14.214.197] (HELO hproxy.gmail.com) (72.14.214.197) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 01:29:47 -0700 Received: by hproxy.gmail.com with SMTP id 20so12150huc for ; Thu, 20 Apr 2006 01:29:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=r60qra9YVAVzdO/pkCtJ9gxQx+x0DiTmRgC6ZFrUEdWuWVgcKqygnvlR7XAGA0sUjjYpRTxwfMQT1MhiA0gnrZsy+Q4RaTVs8kcQsPb7cEAeiHk63S90YPb3Am4R/8rflI+ElJh3rmrOirB82tXSrumOe9zaox4iuKlc44BiZME= Received: by 10.49.64.16 with SMTP id r16mr239400nfk; Thu, 20 Apr 2006 01:29:25 -0700 (PDT) Received: from ?9.20.183.63? ( [195.212.29.83]) by mx.gmail.com with ESMTP id l22sm531433nfc.2006.04.20.01.29.25; Thu, 20 Apr 2006 01:29:25 -0700 (PDT) Message-ID: <44474669.2020509@googlemail.com> Date: Thu, 20 Apr 2006 09:29:29 +0100 From: George Harley Reply-To: harmony-dev@incubator.apache.org User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: Classpath setting for Eclipse(was Re: [jira] Resolved: (HARMONY-349) The currency field of DecimalFormatSymbols is not deserialized properly) References: <15379851.1145457814500.JavaMail.jira@brutus> <444706F5.4050905@gmail.com> In-Reply-To: <444706F5.4050905@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Paulex, Adding new Eclipse source folders to a module to cater for the resources sounds good to me, but I don't understand the need to have their output go to new sub-folders under bin. Why not just have test resources go under the existing bin/test and main resources go under bin/main like this ... Best regards, George Paulex Yang wrote: > Recently we have agreed to put the serialization data file to the > /test/resources/serialization directory, but which requires > Eclipse user additional setting to run serialization tests. To handle > this issue, I propose to add the following lines to .classpath file of > each module as below, so that the files in resources directory can be > built into default classpath. Comments? > > path="src/test/resources"/> > path="src/main/resources"/> > > George Harley (JIRA) wrote: >> [ http://issues.apache.org/jira/browse/HARMONY-349?page=all ] >> George Harley resolved HARMONY-349: >> ----------------------------------- >> >> Resolution: Fixed >> >> Hi Paulex, >> Changes committed in revision 395251. I made a couple of >> modifications to the supplied test case to enable it to load the .ser >> file from the system classloader. In addition I put the .ser into the >> modules/text/src/test/resources/serialization/java/text location and >> updated the build.xml with a new copy.test.resources target so that >> this .ser file (and eventually others like it) make it onto the >> runtime classpath. >> Please could you confirm if this version of your patch has been >> applied to your satisfaction. >> Thanks for this enhancement, George >> >> >>> The currency field of DecimalFormatSymbols is not deserialized >>> properly >>> ------------------------------------------------------------------------ >>> >>> >>> Key: HARMONY-349 >>> URL: http://issues.apache.org/jira/browse/HARMONY-349 >>> Project: Harmony >>> Type: Bug >>> >> >> >>> Components: Classlib >>> Reporter: Paulex Yang >>> Assignee: George Harley >>> Attachments: 02.JIRA349_text.zip >>> >>> According to the serialized form of DecimalFormatSymbols, the >>> DecimalFormatSymbols itself should be responsible for initializing >>> the currency from the intlCurrencySymbol field. But Harmony only >>> leave it as null. The following test case reproduces this bug: >>> public void test_serialization() { >>> DecimalFormatSymbols symbols = new >>> DecimalFormatSymbols(Locale.FRANCE); >>> Currency currency = symbols.getCurrency(); >>> assertNotNull(currency); >>> try { >>> // serialize >>> ByteArrayOutputStream byteOStream = new >>> ByteArrayOutputStream(); >>> ObjectOutputStream objectOStream = new ObjectOutputStream( >>> byteOStream); >>> objectOStream.writeObject(symbols); >>> // and deserialize >>> ObjectInputStream objectIStream = new ObjectInputStream( >>> new >>> ByteArrayInputStream(byteOStream.toByteArray())); >>> DecimalFormatSymbols symbolsD = (DecimalFormatSymbols) >>> objectIStream >>> .readObject(); >>> >>> // The associated currency will not persist >>> currency = symbolsD.getCurrency(); >>> } catch (Exception e1) { >>> fail("Errors occur during serialization"); >>> } >>> try { >>> assertNotNull(currency); >>> } catch (Exception e) { >>> fail("currency should not be null"); >>> } >>> } >>> Pass on RI(Sun JDK1.5.0_06) >>> Rail on Harmony >>> >> >> > > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org