David E Jones wrote: > > On Dec 4, 2006, at 1:44 PM, Adam Heath wrote: > >> David E Jones wrote: >>> >>> On Dec 3, 2006, at 2:23 PM, David E Jones wrote: >>> >>>> While on this topic before we get into a vote or anything, does anyone >>>> have any objections to requiring Java 1.4 for OFBiz? >>> >>> Whoops... I meant: requiring Java 1.5 for OFBiz? (and making it so it >>> won't run on Java 1.4) >> >> Well, it depends on which features one plans on using. >> >> If possible, try on 1.4. There are some tool sets that provide 1.5 like >> features, but can work on a 1.4 vm. One that I am familiar with is the >> util.concurrent stuff, replacing java.util.concurrent. > > This is a good point and basically what we have been doing to date, but > in general it isn't something we have total control of. As other > libraries move to requiring 1.5 we'll have to require it as well in > order to update those libraries.
Well, I'll let you in on an evil plan. Recently, sun gpled it's virtual machine. As a first step, it released the source for the vm(in c++), and the compiler(in java). However, the compiler is written to modern standards(using generics from java 1.5). Bootstrapping is made more complex because of this, as no currently free compiler can handle it. So, I started working on a preprocessor to strip that stuff out, and convert it to old code. It's a longish-term project, but the same could also be done to certain byte codes. The preprocessor can already parse all of the javac source. Just need to start writing the tree mutators(which, due to another unrelated project, I now have a base to start from).
