Hi Tim,

We've removed the restriction for 1.1 compatible code, so no. The lowest
common denominator that is supported is now JDK 1.2.

Castor internally handles Iterators, by wrapping them in a simple
IteratorEnumeration. This was initially done because of the JDK 1.1
compatibility...so we need to change the way things are done internally,
but Iterators are still supported.

I think Roberts concern was that when using -types j2 he's getting
Enumeration instead of Iterator, so that code needs to be updated.

--Keith

"Leeuw van der, Tim" wrote:
> 
> Hi,
> 
> This raises the question: Is Castor (or the XML subset thereof) still meant to be 
> used by JDK level 1.1, or not?
> 
> regards,
> 
> --Tim
> 
> > -----Original Message-----
> > From: Robert La Ferla [mailto:[EMAIL PROTECTED]
> > Sent: dinsdag 16 maart 2004 21:41
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] Iterator instead of Enumeration?
> >
> >
> >
> > Anyway to configure Castor to use Iterator for types instead of
> > Enumeration?
> >
> > e.g.
> >
> > public static Iterator iterate();
> >
> >
> > I ask because there is a note in the Enumeration documentation that
> > hints at Enumeration being deprecated in the future.  Not sure if it
> > will ever happen but it would be nice if Castor used Iterator instead.
> >
> > NOTE: The functionality of this interface is duplicated by
> > the Iterator
> > interface. In addition, Iterator adds an optional remove
> > operation, and
> > has shorter method names. New implementations should consider using
> > Iterator in preference to Enumeration.
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-dev
> >
> >
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to