commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [DBCP] Possible strategy for multiple JDBC version support
Date Tue, 04 Jun 2013 14:10:16 GMT
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.

Emmanuel Bourg



Mime
View raw message