You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bert Van Kets <co...@vankets.com> on 2004/10/26 20:11:24 UTC

Cocoon and JDK 1.5

This "rant" is about Cocoon 2.1.5

The biggest problem using JDK 1.5 is the use of "enum" in the source
code. This variable or object name is not allowed any more as enum is a
new type of variable in JDK 1.5.
There are however still quite a lot of uses of "enum" in the Cocoon
source.

First I rebuilt Jakarta Common Lang to solve the package problem in the
forms and Woody block. "enum" is part of the package and has been
replaced with "enums". The current commons-lang-2.0.jar file still
contains the old package name. I needed to get the CVS version from the
commons project and create the new jar using the "enums" package. If
people are interested I can set this on a public location.

The next problem to tackle is the use of "enum" in many packages. When
you use Eclipse, this is easily solved doing a search on "Enumeration
enum" and then refactor "enum" to "enums". There's also an Itereation
called "enum", so don't forget to search for that.

Once you did these two bits, Cocoon 2.1.5 will compile perfectly and be
very fast. I ran through the major samples and they all came up
perfectly and very fast.

Hope this helps somebody.

Now, is the "enum" problem going to be solved with Cocoon 2.1.6?


Bert


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


Re: Cocoon and JDK 1.5

Posted by Ralph Goers <Ra...@dslextreme.com>.
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109710228801931&w=2
and
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109691665429634&w=2


Bert Van Kets said:
> This "rant" is about Cocoon 2.1.5
>
> The biggest problem using JDK 1.5 is the use of "enum" in the source
> code. This variable or object name is not allowed any more as enum is a
> new type of variable in JDK 1.5.
> There are however still quite a lot of uses of "enum" in the Cocoon
> source.
>
> First I rebuilt Jakarta Common Lang to solve the package problem in the
> forms and Woody block. "enum" is part of the package and has been
> replaced with "enums". The current commons-lang-2.0.jar file still
> contains the old package name. I needed to get the CVS version from the
> commons project and create the new jar using the "enums" package. If
> people are interested I can set this on a public location.
>
> The next problem to tackle is the use of "enum" in many packages. When
> you use Eclipse, this is easily solved doing a search on "Enumeration
> enum" and then refactor "enum" to "enums". There's also an Itereation
> called "enum", so don't forget to search for that.
>
> Once you did these two bits, Cocoon 2.1.5 will compile perfectly and be
> very fast. I ran through the major samples and they all came up
> perfectly and very fast.
>
> Hope this helps somebody.
>
> Now, is the "enum" problem going to be solved with Cocoon 2.1.6?
>
>
> Bert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


Re: Cocoon and JDK 1.5

Posted by Bert Van Kets <co...@vankets.com>.
Hi Antonio,
I did a CVS checkout today before I started with the attempt to compile
with JDK 1.5.0. So I can tell that the 2.1 branch of Cocoon certainly
does not comply with 1.5 yet.
The source=1.4 trick does not allow full optimization of the code so
should be avoided.
It's correct that some build files need to be adjusted. References from
JDK 1.3 need to be replaced with 1.5.

Bert

On Tue, 2004-10-26 at 20:57, Antonio Gallardo wrote:
> Hi Bert:
> 
> Thnks for the effort. Please see this:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=30883
> 
> I think the next release is soon.
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> 


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


Re: [SPAM] Re: [SPAM] Re: Cocoon and JDK 1.5

Posted by Antonio Gallardo <ag...@agssa.net>.
Bert Van Kets dijo:
> Thanks for clearing that up. I have been out of Cocoon for some time for
> personal reasons (divorce) and did miss the branching and sub
> versioning.
> I used Eclipse CVS to check out the Cocoon-2.1 HEAD. From what I
> understand from the link you posted I should get the BRANCH_2_1_X
> version.

Yep. This is the version you need to check out. This SVN version contain
all the changes for java 1.5

> Darn, back to the basics. :-(

Don't worry, it is normal. ;-)

Best Regards,

Antonio Gallardo


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


Re: [SPAM] Re: Cocoon and JDK 1.5

Posted by Bert Van Kets <co...@vankets.com>.
Thanks for clearing that up. I have been out of Cocoon for some time for
personal reasons (divorce) and did miss the branching and sub
versioning.
I used Eclipse CVS to check out the Cocoon-2.1 HEAD. From what I
understand from the link you posted I should get the BRANCH_2_1_X
version.
Darn, back to the basics. :-(

On Wed, 2004-10-27 at 18:32, Antonio Gallardo wrote:
> Bert:
> 
> I hope you saw the other mail with this link:
> 
> http://wiki.apache.org/cocoon/SubversionMigration
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> Bert Van Kets dijo:
> > Your remarks are correct. I do read the dev list too.
> > It still forces people to get the CVS version of commons-lang and in the
> > 2.1 Branch certainly not all uses of the "enum" variable are replaced.
> > There are still 19 cases of the "enum" declaration.
> >
> > Bert
> >
> > On Tue, 2004-10-26 at 21:34, Ralph Goers wrote:
> >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109710228801931&w=2
> >> and
> >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109691665429634&w=2
> >>
> >> Bert Van Kets said:
> >> > This "rant" is about Cocoon 2.1.5
> >> >
> >> > The biggest problem using JDK 1.5 is the use of "enum" in the source
> >> > code. This variable or object name is not allowed any more as enum is
> >> a
> >> > new type of variable in JDK 1.5.
> >> > There are however still quite a lot of uses of "enum" in the Cocoon
> >> > source.
> >> >
> >> > First I rebuilt Jakarta Common Lang to solve the package problem in
> >> the
> >> > forms and Woody block. "enum" is part of the package and has been
> >> > replaced with "enums". The current commons-lang-2.0.jar file still
> >> > contains the old package name. I needed to get the CVS version from
> >> the
> >> > commons project and create the new jar using the "enums" package. If
> >> > people are interested I can set this on a public location.
> >> >
> >> > The next problem to tackle is the use of "enum" in many packages. When
> >> > you use Eclipse, this is easily solved doing a search on "Enumeration
> >> > enum" and then refactor "enum" to "enums". There's also an Itereation
> >> > called "enum", so don't forget to search for that.
> >> >
> >> > Once you did these two bits, Cocoon 2.1.5 will compile perfectly and
> >> be
> >> > very fast. I ran through the major samples and they all came up
> >> > perfectly and very fast.
> >> >
> >> > Hope this helps somebody.
> >> >
> >> > Now, is the "enum" problem going to be solved with Cocoon 2.1.6?
> >> >
> >> >
> >> > Bert
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> > For additional commands, e-mail: users-help@cocoon.apache.org
> >> >
> >> >
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Re: [SPAM] Re: Cocoon and JDK 1.5

Posted by Antonio Gallardo <ag...@agssa.net>.
Bert:

I hope you saw the other mail with this link:

http://wiki.apache.org/cocoon/SubversionMigration

Best Regards,

Antonio Gallardo

Bert Van Kets dijo:
> Your remarks are correct. I do read the dev list too.
> It still forces people to get the CVS version of commons-lang and in the
> 2.1 Branch certainly not all uses of the "enum" variable are replaced.
> There are still 19 cases of the "enum" declaration.
>
> Bert
>
> On Tue, 2004-10-26 at 21:34, Ralph Goers wrote:
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109710228801931&w=2
>> and
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109691665429634&w=2
>>
>> Bert Van Kets said:
>> > This "rant" is about Cocoon 2.1.5
>> >
>> > The biggest problem using JDK 1.5 is the use of "enum" in the source
>> > code. This variable or object name is not allowed any more as enum is
>> a
>> > new type of variable in JDK 1.5.
>> > There are however still quite a lot of uses of "enum" in the Cocoon
>> > source.
>> >
>> > First I rebuilt Jakarta Common Lang to solve the package problem in
>> the
>> > forms and Woody block. "enum" is part of the package and has been
>> > replaced with "enums". The current commons-lang-2.0.jar file still
>> > contains the old package name. I needed to get the CVS version from
>> the
>> > commons project and create the new jar using the "enums" package. If
>> > people are interested I can set this on a public location.
>> >
>> > The next problem to tackle is the use of "enum" in many packages. When
>> > you use Eclipse, this is easily solved doing a search on "Enumeration
>> > enum" and then refactor "enum" to "enums". There's also an Itereation
>> > called "enum", so don't forget to search for that.
>> >
>> > Once you did these two bits, Cocoon 2.1.5 will compile perfectly and
>> be
>> > very fast. I ran through the major samples and they all came up
>> > perfectly and very fast.
>> >
>> > Hope this helps somebody.
>> >
>> > Now, is the "enum" problem going to be solved with Cocoon 2.1.6?
>> >
>> >
>> > Bert
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> > For additional commands, e-mail: users-help@cocoon.apache.org
>> >
>> >
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Re: Cocoon and JDK 1.5

Posted by Bert Van Kets <co...@vankets.com>.
Your remarks are correct. I do read the dev list too.
It still forces people to get the CVS version of commons-lang and in the
2.1 Branch certainly not all uses of the "enum" variable are replaced.
There are still 19 cases of the "enum" declaration.

Bert

On Tue, 2004-10-26 at 21:34, Ralph Goers wrote:
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109710228801931&w=2
> and
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109691665429634&w=2
> 
> Bert Van Kets said:
> > This "rant" is about Cocoon 2.1.5
> >
> > The biggest problem using JDK 1.5 is the use of "enum" in the source
> > code. This variable or object name is not allowed any more as enum is a
> > new type of variable in JDK 1.5.
> > There are however still quite a lot of uses of "enum" in the Cocoon
> > source.
> >
> > First I rebuilt Jakarta Common Lang to solve the package problem in the
> > forms and Woody block. "enum" is part of the package and has been
> > replaced with "enums". The current commons-lang-2.0.jar file still
> > contains the old package name. I needed to get the CVS version from the
> > commons project and create the new jar using the "enums" package. If
> > people are interested I can set this on a public location.
> >
> > The next problem to tackle is the use of "enum" in many packages. When
> > you use Eclipse, this is easily solved doing a search on "Enumeration
> > enum" and then refactor "enum" to "enums". There's also an Itereation
> > called "enum", so don't forget to search for that.
> >
> > Once you did these two bits, Cocoon 2.1.5 will compile perfectly and be
> > very fast. I ran through the major samples and they all came up
> > perfectly and very fast.
> >
> > Hope this helps somebody.
> >
> > Now, is the "enum" problem going to be solved with Cocoon 2.1.6?
> >
> >
> > Bert
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> 
> 


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