From: Audrius Meskauskas <audriusa@bluewin.ch>
To: _PATHES Mauve <mauve-patches@sourceware.org>
Subject: FYI:EventListenerList text fix for 1.5 code
Date: Tue, 02 Jan 2007 13:55:00 -0000 [thread overview]
Message-ID: <459A6430.5090505@bluewin.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
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 <AudriusA@Bioinformatics.org>
* gnu/testlet/javax/swing/event/EventListenerList/add.java:
Cast L.class into Class.
[-- Attachment #2: sb.patch --]
[-- Type: text/x-patch, Size: 485 bytes --]
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)
{
reply other threads:[~2007-01-02 13:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459A6430.5090505@bluewin.ch \
--to=audriusa@bluewin.ch \
--cc=mauve-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).