Re: Fwd: Cocoon 2.1.X - Build # 141 - Still Failing

Cédric Damioli <[email protected]> Mon, 22 Jun 2020 12:11:57 +0200
Newsgroups gmane.text.xml.cocoon.devel
Organization Apache Software Foundation
Message-ID <[email protected]>

Le 22/06/2020 à 08:57, Francesco Chicchiriccò a écrit :
> On 21/06/20 22:11, Cédric Damioli wrote:
>> I just tested with JDK 1.6 and it worked fine (my exact JDK version 
>> is 1.6.0_18, Windows version).
>
> Mine is 1.6.0_45 (Linux) e.g. the one you can download at the moment 
> from Oracle.
>
>> I'm a bit worried if we must change to 1.8, as Cocoon 2.1.x is 
>> supposed to be compatible with 1.6.
>> Furthermore, javac claims about a RESyntaxException being not 
>> catched, but it's actually a RuntimeException, so I don't see the 
>> problem ...
>
> The actual issue seems to be the fact that RESyntaxException is 
> contained either by
>
> ./lib/endorsed/jakarta-regexp-1.5.jar
>
> and
>
> ./lib/endorsed/xalan-2.7.2.jar
>
> with the former extending RuntimeException and the latter extending 
> Exception; so it actually depends on which one is picked during build, 
> I'd say.
>
> Since all classes from the former JAR are included by the latter JAR, 
> I think we should remove jakarta-regexp, but this will not solve the 
> build problem, it will only make it more consistent - which I also 
> believe it is better.
>
Ok, understood. I was wondering why did this never happen before ? 
jakarta-regexp-1.5 and xalan are used since 10+ years together
I just found than Xalan has been upgraded to 2.7.2 last year. Before 
that, our provided xalan-2.7.1 did not embed org.apache.regexp package
Did we had our own xalan version ?

BTW, a similar issue was raised 15 years ago :) : 
https://issues.apache.org/jira/browse/COCOON-1576

Cédric