From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2468 invoked by alias); 12 Oct 2005 18:02:27 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 2452 invoked by uid 22791); 12 Oct 2005 18:02:24 -0000 Received: from outmail128167.authsmtp.co.uk (HELO squirrel.dmpriest.net.uk) (62.13.128.167) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 12 Oct 2005 18:02:24 +0000 Received: from [82.5.12.149] (cpc2-hem14-6-0-cust149.lutn.cable.ntl.com [82.5.12.149]) (authenticated bits=0) by squirrel.dmpriest.net.uk (8.13.3/8.13.3/Kp) with ESMTP id j9CI2IBl084252; Wed, 12 Oct 2005 19:02:19 +0100 (BST) (envelope-from david.gilbert@object-refinery.com) Message-ID: <434D5DC1.5000804@object-refinery.com> Date: Wed, 12 Oct 2005 18:02:00 -0000 From: David Gilbert User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050728) MIME-Version: 1.0 To: Mark Wielaard CC: mauve-discuss@sourceware.org Subject: Re: registerValidation update References: <1129139080.5922.20.camel@localhost.localdomain> In-Reply-To: <1129139080.5922.20.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: 54b372f2-3b4a-11da-a87f-001185d377ca X-Authentic-SMTP: 61633132333134.squirrel.dmpriest.net.uk:1.38/Kp X-Powered-By: AuthSMTP - http://www.authsmtp.com - Authenticated SMTP Mail Relay X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-SW-Source: 2005-q4/txt/msg00004.txt.bz2 Mark Wielaard wrote: >Hi, > >This updates the ObjectInputStream.registerValidation() test to test >whether it is only called one in the deserialization tree (the this >reference) and whether you can add validators at any time and whether >the priority order is observed. > >2005-10-12 Mark Wielaard > > * gnu/testlet/java/io/ObjectInputStream/registerValidation.java: > Check fields and priority order. > * gnu/testlet/java/io/ObjectInputStream/TestObjectInputValidation.java: > Add self reference, register multiple times with different priorities, > add equals(). > >I am currently testing a patch for GNU Classpath. >David since you wrote the original test you might have seen a real world >program using this feature. If so and this is a Free Software program >could you let me know so I can also test my patch against that. > > > Hi Mark, There is one case of this in JFreeChart, in the AbstractDataset class. I didn't write the code, and I'd have to go and study it to figure out what it does...most likely I wrote the Mauve test while trying to understand the mechanism in general. I'm out of time for today, but can probably look at this in the morning... Regards, Dave