* FYI:EventListenerList text fix for 1.5 code
@ 2007-01-02 13:55 Audrius Meskauskas
0 siblings, 0 replies; only message in thread
From: Audrius Meskauskas @ 2007-01-02 13:55 UTC (permalink / raw)
To: _PATHES Mauve
[-- 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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-02 13:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-02 13:55 FYI:EventListenerList text fix for 1.5 code Audrius Meskauskas
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).