From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16779 invoked by alias); 27 Dec 2002 15:06:31 -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 16726 invoked from network); 27 Dec 2002 15:06:29 -0000 Received: from unknown (HELO imf07bis.bellsouth.net) (205.152.58.167) by 209.249.29.67 with SMTP; 27 Dec 2002 15:06:29 -0000 Received: from tigger.altaregos.com ([67.34.134.193]) by imf07bis.bellsouth.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021227150810.PUEI13418.imf07bis.bellsouth.net@tigger.altaregos.com>; Fri, 27 Dec 2002 10:08:10 -0500 Received: from tigger (localhost.localdomain [127.0.0.1]) by tigger.altaregos.com (8.12.5/8.12.5) with ESMTP id gBRF795M006424; Fri, 27 Dec 2002 10:07:09 -0500 Received: (from daryl@localhost) by tigger (8.12.5/8.12.5/Submit) id gBRF79Xf006420; Fri, 27 Dec 2002 10:07:09 -0500 Date: Fri, 27 Dec 2002 07:06:00 -0000 From: Daryl Lee To: Brian Jones Cc: Mauve Discuss Subject: Re: API Differences Message-ID: <20021227150608.GA6189@tigger.localdomain> References: <20021226202921.GA23724@tigger.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2002-q4/txt/msg00087.txt.bz2 This is VERY helpful. So helpful, in fact, that the very first two lines of output (in the java.io section) raise a general question on testing. In the transition from JDK 1.1 to JDK 1.2, Sun redefined the behavior of the FileOutputStream(String) constructor. In 1.1, it threw an IOException; in 1.2 (and through 1.4), it throws a FileNotFoundException. Since there is only one implementation of the API, and since it is trying to be as up to date as possible, a specification change such as this will inevitably cause a failure of a 1.1 test, where a 1.2 (or later) test will pass. The general question is "How to handle such changes?" Or am I missing something, like the existence of a classpath archived to the JDK 1.1 spec? On Thu, Dec 26, 2002 at 08:45:34PM -0500, Brian Jones wrote: > Daryl Lee writes: > > > Having completed the java.io JDK 1.1 tests, I am now ready to move on to > > the 1.2 tests, but I need an efficient means of knowing the differences > > between the two versions of the APIs. Is there a tool I can use that will > > identify exactly what needs to be tested? > > japicompat/japize can be used for this purpose. Take the 1.1 and 1.2 > files from the japize website and run japicompat to compare them. > > > An associated question has more to do with the mauve 'choose' script, which > > looks more and more like Greek everytime I try to figure out how it works. > > If I specify JDK1.2 in mauve-classpath, will it cause the selected JDK1.0 and > > JKD1.1 tests to be run as well as any JDK1.2 tests I create? (Please say > > yes!) A corollary question is, "What is the difference between the 'uses:' > > declaration in mauve tests and the standard Java 'import' statement?" > > Yes, it will do what you think and select the previous version tests > as well. Uses is for the choose script... or other scripts, to know > that test foo in foo.java also uses bar in bar.java (must be in same > package currently). So it would be nice in some cases to avoid code > duplication of utility methods useful to a particular subset of tests. > > Brian > -- > Brian Jones > -- Daryl Lee Open the present--it's a gift.