You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/07/13 08:33:00 UTC

[C2]: Jdk 1.2 or jdk1.3 ?

Hi,

there current version of c2 is not compilable with the jdk1.2,
because of some reference to new methods of the java.net.URL
class which are introduced in jdk 1.3.
These are in the URLSource: getUserInfo() and in the
URLFactoryImpl: getPath().

So, now we face the question: which jdk is required for 1.3?

We could remove the getUserInfo() class in the URLSource.
This was only an additional feature for getting authenticated
http urls working, but I am not sure about the getPath() call.

I vote for using jdk 1.3.


Carsten 

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de 
================================================================




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Gerhard Fröhlich <g-...@gmx.de>.
> 
> 
> Donald Ball a écrit :
> > 
> > On Fri, 13 Jul 2001, Carsten Ziegeler wrote:
> > 
> > > But our experience showed that if you compile c2 with the jdk 1.3
> (which
> > > then is required) it does not always work with the jdk 1.2. I don't
> remember
> > > the details.
> > 
> > really? that's shocking, the class file format didn't change, afaik.
> hmm.
> > 
> > - donald
> > 
> Sometimes the jdk 1.3 compiler produces class files whith a higher
> version number than the one accepted by jdk 1.2
> 
> See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=98984704015324&w=2
> for an occurence of this.
> 
> Anyway, it would be good for Cocoon core classes to be 1.2 savvy : there
> are some sites where 1.3 isn't available because customers are using an
> old (is 1 year considered old ?) app server that runs jdk 1.2.2
> 
As man from practice :-), I agree with this statement, too...

Cheers
Gerhard

-- 
Gerhard Fröhlich
g-froehlich@gmx.de

"black holes are,
when GOD is dividing by zero" 

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Carsten Ziegeler <cz...@sundn.de>.
Yes, you're right. We should keep try to be jdk 1.2 compatible.
I will change this later today.

Carsten

> -----Ursprüngliche Nachricht-----
> Von: Sylvain Wallez [mailto:sylvain.wallez@anyware-tech.com]
> Gesendet: Freitag, 13. Juli 2001 09:22
> An: cocoon-dev@xml.apache.org
> Betreff: Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?
>
>
>
>
> Donald Ball a écrit :
> >
> > On Fri, 13 Jul 2001, Carsten Ziegeler wrote:
> >
> > > But our experience showed that if you compile c2 with the jdk
> 1.3 (which
> > > then is required) it does not always work with the jdk 1.2. I
> don't remember
> > > the details.
> >
> > really? that's shocking, the class file format didn't change,
> afaik. hmm.
> >
> > - donald
> >
> Sometimes the jdk 1.3 compiler produces class files whith a higher
> version number than the one accepted by jdk 1.2
>
> See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=98984704015324&w=2
> for an occurence of this.
>
> Anyway, it would be good for Cocoon core classes to be 1.2 savvy : there
> are some sites where 1.3 isn't available because customers are using an
> old (is 1 year considered old ?) app server that runs jdk 1.2.2
>
> --
> Sylvain Wallez
> Anyware Technologies - http://www.anyware-tech.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 13 Jul 2001, Sylvain Wallez wrote:

> Sometimes the jdk 1.3 compiler produces class files whith a higher
> version number than the one accepted by jdk 1.2

ah, i didn't know that. i wonder what happens if you try to use the
-target option of javac but also link against jdk-1.3 classes and
methods...?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
On Fri, 13 Jul 2001, Sylvain Wallez wrote:

> Donald Ball a écrit :
> > 
> > On Fri, 13 Jul 2001, Carsten Ziegeler wrote:
> > 
> > > But our experience showed that if you compile c2 with the jdk 1.3 (which
> > > then is required) it does not always work with the jdk 1.2. I don't remember
> > > the details.
> > 
> > really? that's shocking, the class file format didn't change, afaik. hmm.
> > 
> > - donald
> > 
> Sometimes the jdk 1.3 compiler produces class files whith a higher
> version number than the one accepted by jdk 1.2
> 
> See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=98984704015324&w=2
> for an occurence of this.
> 
> Anyway, it would be good for Cocoon core classes to be 1.2 savvy : there
> are some sites where 1.3 isn't available because customers are using an
> old (is 1 year considered old ?) app server that runs jdk 1.2.2

	I agree, and under some platforms (sparc linux for example), a
	performant jdk 1.3 is not yet available.

	Cheers,

	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Sylvain Wallez <sy...@anyware-tech.com>.

Donald Ball a écrit :
> 
> On Fri, 13 Jul 2001, Carsten Ziegeler wrote:
> 
> > But our experience showed that if you compile c2 with the jdk 1.3 (which
> > then is required) it does not always work with the jdk 1.2. I don't remember
> > the details.
> 
> really? that's shocking, the class file format didn't change, afaik. hmm.
> 
> - donald
> 
Sometimes the jdk 1.3 compiler produces class files whith a higher
version number than the one accepted by jdk 1.2

See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=98984704015324&w=2
for an occurence of this.

Anyway, it would be good for Cocoon core classes to be 1.2 savvy : there
are some sites where 1.3 isn't available because customers are using an
old (is 1 year considered old ?) app server that runs jdk 1.2.2

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 13 Jul 2001, Carsten Ziegeler wrote:

> But our experience showed that if you compile c2 with the jdk 1.3 (which
> then is required) it does not always work with the jdk 1.2. I don't remember
> the details.

really? that's shocking, the class file format didn't change, afaik. hmm.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Carsten Ziegeler <cz...@sundn.de>.
> Donald Ball wrote:
>
> On Fri, 13 Jul 2001, Carsten Ziegeler wrote:
>
> > there current version of c2 is not compilable with the jdk1.2,
> > because of some reference to new methods of the java.net.URL
> > class which are introduced in jdk 1.3.
> > These are in the URLSource: getUserInfo() and in the
> > URLFactoryImpl: getPath().
> >
> > So, now we face the question: which jdk is required for 1.3?
> >
> > We could remove the getUserInfo() class in the URLSource.
> > This was only an additional feature for getting authenticated
> > http urls working, but I am not sure about the getPath() call.
> >
> > I vote for using jdk 1.3.
>
> can't we put a try block around references to stuff only available in
> jdk-1.3 so that jdk-1.2 people can just ignore those bits of code? is this
> stuff used in a core method or are they just data access methods provided
> for the user?
>
The method calls are currently in the core as the URLSource and the
URLFactoryImpl are core classes. But the URLSource is mostly harmless
as it is only an additional feature. We could use there a try block.

But our experience showed that if you compile c2 with the jdk 1.3 (which
then is required) it does not always work with the jdk 1.2. I don't remember
the details.

Carsten

> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [C2]: Jdk 1.2 or jdk1.3 ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Fri, 13 Jul 2001, Carsten Ziegeler wrote:

> there current version of c2 is not compilable with the jdk1.2,
> because of some reference to new methods of the java.net.URL
> class which are introduced in jdk 1.3.
> These are in the URLSource: getUserInfo() and in the
> URLFactoryImpl: getPath().
>
> So, now we face the question: which jdk is required for 1.3?
>
> We could remove the getUserInfo() class in the URLSource.
> This was only an additional feature for getting authenticated
> http urls working, but I am not sure about the getPath() call.
>
> I vote for using jdk 1.3.

can't we put a try block around references to stuff only available in
jdk-1.3 so that jdk-1.2 people can just ignore those bits of code? is this
stuff used in a core method or are they just data access methods provided
for the user?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org