ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: XML validation and JAXP 1.3
Date Thu, 09 Apr 2009 14:33:42 GMT
On 2009-03-24, Kronus David <> wrote:

> I've implemented this in a way that is probably not compatible with
> Ant policy, namely that the code has to compile on Java 1.2, or am I
> wrong?

Java 1.4 for trunk.  And this is only true for core tasks, optional
tasks can set the barrier as high as they like to.

> Anyway, this would need to be somehow finished and before I spend
> the time to do it I'd like to ask whether you think this could be
> useful for inclusion in Ant.

If you find a way that allowed the current tasks to still be available
for Java 1.4, yes, we'd be interested in the enhancement.  If it made
the tasks "1.5 only" then we'd practically remove those two tasks for
JDK 1.4 users.

> The modification itself is not large, but if I must use only
> reflection to access non-1.2 classes, it could get messy.

No reason to use reflection for everything.  You could extract some
sort of interface that is implemented once for JAXP 1.3 and once for
the current code base.  Add conditional compilation for JAXP 1.3 and
try to load that (via reflection) at runtime, falling back to the
old-style implementation.

So yes, there'd be reflection, but just for loading a single class.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message