commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@scalaris.com>
Subject Re: [DBCP] Possible strategy for multiple JDBC version support
Date Tue, 04 Jun 2013 14:23:20 GMT
Emmanuel Bourg wrote:

> Le 04/06/2013 15:45, Phil Steitz a écrit :
> 
>> Such a tool would be useful if it could automatically generate
>> taggable sources.  This is what the comment markers and ant filter
>> tasks in the current setup do.
> 
> I don't think a tool based on bytecode manipulation could produce the
> corresponding sources. The idea is to build the main jar with the latest
> JDK, and then strip or rewrite the methods from the .class files and
> generate new jars for the previous JDKs. Having the exact -sources or
> -javadoc artifacts that match the downgraded variants is not that
> important, they could be copied as is from the main artifact. It doesn't
> matter if they contain more methods than what is actually in the jar.

IMHO it is. If you do not have a matching -sources.jar, it will be 
cumbersome to debug a problem for any client. Note, that the -sources.jar 
would contain the filtered stuff, while the source distribution (-src.zip) 
would contain the originals.

- Jörg


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


Mime
View raw message