But that does not preclude an Enumeration or Iterator reference from being
serializable by virtue of the fact that the implementing class is Serializable:
bash-2.02$ cat tstIter.java
import java.io.Serializable;
import java.util.Iterator;
class tstIter implements Serializable, Iterator
{
public boolean hasNext()
{
return false;
}
public Object next()
{
return null;
}
public void remove()
{
}
public static void main(String[] args)
{
tstIter tst = new tstIter();
System.out.println("tstIter is Serializable = "+(tst instanceof
Serializable));
}
}
bash-2.02$ java -cp . tstIter
tstIter is Serializable = true
bash-2.02$
----- Original Message -----
From: "Juan Pablo Lorandi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 01, 2000 9:15 AM
Subject: FW: Marshalling error in simple bean - please help
> Agreed on everything but... *FUNNY FACT*:
> An Enumeration (or the newer java.util.Iterator) is an interface, thus,
> it can't implement Serializable;
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".