I see two possible solutions.
1. Isn't there a Collections API available for jdk1.1 which could
be used by Castor so it can use Collections even if j2 isn't
available?
2. Tomcat 3.x does the following.
It requires duplicate classes and a wrapper which instantiates
the appropriate class at runtime based on whether jdk1.x or j2
is available. And the build detects whether j2 is available and
only compiles the j2 dependent classes if it is.
Regards,
Glenn
Ian Lim wrote:
>
> Hi
>
> Is there a way to manipulate the build process such that the source
> code could be included if the compiling is with JDK 1.2 and above?
> And the source code would be excluded if the compilation is with JDK 1.1.
> Would this be enough to maintain JDK 1.1 compatability ?
>
> Regards
> Ian Lim
>
> ----- Original Message -----
> From: "Keith Visco" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 10, 2002 02:51 PM
> Subject: Re: [castor-dev] Castor patch to generate Java2 Collections
> ArrayList code instead of Array []
>
> >
> >
> > "Dirk P. Fromhein" wrote:
> > >
> > > Why is that?
> > >
> > > I can think of one reason (that I hope is not the reason - applet
> > > compatibility with "old" browsers, not a feature I care about at all).
> > >
> >
> > How about, because our sponsors want us to keep JDK 1.1 compatability.
> > Do you think that's a good enough reason? I think it's a great
> > reason...they make it possible for Castor to remain free of charge and
> > open source.
> >
> > > In the area of Collections, 1.2 added some very important functionality.
> > > Why not support it? (I for one feel it is essential)
> >
> > I never said we wouldn't support 1.2...AND WE DO have support for 1.2 in
> > both the source code generator and the mapping framework.
> >
> > I simply said, we need to maintain JDK 1.1 compatability. JDK 1.2
> > compatability needs to be added in a way that it doesn't break JDK 1.1
> > compatability, that's all.
> >
> > Castor-XML needs to remain JDK agnostic. This simply means we need to be
> > creative when we add support for JDK 1.2, such as using collection
> > handlers and wrapper classes, etc.
> >
> > Glenn is maintaining his changes and has made them available. So if you
> > wish to use them, feel free to do so. That's why he made them available.
> > For people like you, who feel it's essential.
> >
> > Thanks,
> >
> > --Keith
> >
> >
> > >
> > > Keith Visco wrote:
> > >
> > > >Hi Glenn,
> > > >
> > > >We can't use your patch. Castor XML is maintaining JDK 1.1
> > > >compatability. The Marshaller cannot include JDK 1.2+ collections.
> > > >
> > > >Thanks,
> > > >
> > > >--Keith
> > > >
> > > >[munch]
> > > >
> > >
> > > -----------------------------------------------------------
> > > 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
--
----------------------------------------------------------------------
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev