From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31249 invoked by alias); 2 Jan 2007 13:55:12 -0000 Received: (qmail 31211 invoked by uid 22791); 2 Jan 2007 13:55:08 -0000 X-Spam-Check-By: sourceware.org Received: from mail15.bluewin.ch (HELO mail15.bluewin.ch) (195.186.18.63) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Jan 2007 13:55:02 +0000 Received: from [192.168.1.64] (83.76.236.129) by mail15.bluewin.ch (Bluewin 7.3.118) id 457D6A7F005E7462 for mauve-patches@sourceware.org; Tue, 2 Jan 2007 13:55:00 +0000 Message-ID: <459A6430.5090505@bluewin.ch> Date: Tue, 02 Jan 2007 13:55:00 -0000 From: Audrius Meskauskas User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: _PATHES Mauve Subject: FYI:EventListenerList text fix for 1.5 code Content-Type: multipart/mixed; boundary="------------090303060505010902070006" Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2007/txt/msg00001.txt.bz2 This is a multi-part message in MIME format. --------------090303060505010902070006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 529 With generics, we need to cast the class instance into abstract java class: ell.add( (Class) L.class, new L2()); Otherwise the 1.5 java compiler detects the incorrect parameters already at runtime! I think, the test should compile, because we are testing the library and not the compiler. The modified test compiles and passes both with Suns and ours implementation. 2007-01-02 Audrius Meskauskas * gnu/testlet/javax/swing/event/EventListenerList/add.java: Cast L.class into Class. --------------090303060505010902070006 Content-Type: text/x-patch; name="sb.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sb.patch" Content-length: 485 Index: add.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/event/EventListenerList/add.java,v retrieving revision 1.2 diff -u -r1.2 add.java --- add.java 27 Dec 2006 15:48:18 -0000 1.2 +++ add.java 2 Jan 2007 13:48:24 -0000 @@ -124,7 +124,7 @@ caught = null; try { - ell.add(L.class, new L2()); + ell.add( (Class) L.class, new L2()); } catch (Exception ex) { --------------090303060505010902070006--