A couple of bug reports boil down to this punch line - use this report to collect them in one place.
*** Bug 1066 has been marked as a duplicate of this bug. ***
*** Bug 1362 has been marked as a duplicate of this bug. ***
I've investigated this issue and it is not an Ant specific limitation. Firstly it is not the classloader's responsibility to initialize classes (run static initializers). It seems that the JDK's Class.forName does initialize the class but when a class is loaded through a classloader it is not. Under JDK1.1 there is no clean way to force initialization. Attempting to create an instance via newInstance does work, even if the instance cannot be created. This will be the workaround adopted for Ant 1.x
I have added the newInstance call to force inirtialization of the loaded class.