I would like to raise this topic again: what about switching to
as a minimum requirement?
The End of Life transition period for Java 1.4 will end on the 30th
October 2008 . The next version of FOP (after 0.95) will
have been released by this time, so we could start using 1.5
I don’t particularly expect any disagreement from a developer point
vue (who doesn’t want to use 1.5 features?), so in the end this will
probably depend on the users’ reactions, but I thought I’d ask for
opinions here first.
According to the poll Jeremias made in October 2007 , only 14.3%
the users would think it’s a bad idea to switch to 1.5. A year
percentage will probably have further decreased.
I guess a new poll will still be necessary. Or we could base it on
consensus: “If you still want Java 1.4 compatibility, speak up now!”.
Anyway, even if 1.4 compatibility is still considered to be required,
there are tools to convert 1.5 code into 1.4 compatible one. I’m
thinking of Retroweaver:
It’s BSD licensed, so IIC there wouldn’t be any problem to
with FOP. Obviously it would be an (optional) compile-time dependency
only. I haven’t personally tested it, but I’m told it’s working
well and it seems to be well maintained. Of course I’d volunteer to
introduce it into the build system and see how it works. FWIW, it’s
based on the ASM library, that I’ve had the opportunity to play with
a few years ago, and what I can say is that it’s a really nice,
lightweight, easy to use library for manipulating class files.
Obviously we wouldn’t switch everything to 1.5 immediately. We
it progressively, when fixing bugs or implementing new features. So
should be easy to check that the conversion is working properly by
running the testsuite on a 1.4 jvm, before every commit. Also, we
restrain ourselves to features that are directly translatable to 1.4:
generics, enhanced for loop, autoboxing/unboxing. Most of all we
stick to using methods from the Java standard library that are also
available in the 1.4 version (and, for instance, not use the new
concurrency package for now).
Just having the possibility to use generics would give us tremendous
benefits: simpler, cleaner, safer code, more easily understandable,
easily maintainable, etc. I can’t wait anymore to use those features.