Unfortunately it's more subtle than that...
The problem is not that it has target=1.4 set. The problem is that as
soon as you compile it with a Java 5 version of javac, it will link to
StringBuilder, which is a Java5-only class, *even* if target=1.4 is
set! That'a a very severe limitation of javac. The only way I see to
get around this is to compile the abc-runtime with a java 1.4 version
of javac, unless there's another way to tell javac which version of
rt.jar to link with.
Eric
On 05/07/07, Ondrej Lhotak <olhotak@uwaterloo.ca> wrote:
> A while ago, abc moved to using Java 1.5 features, which means a 1.5 JVM
> is required to run the abc compiler. I think I can live with that.
>
> However, the abc-runtime was also switched to compile with target=1.5.
> This means that any code *generated by* abc also requires a 1.5 JVM.
> To me, this seems to be a more serious limitation. In addition, it does
> not seem necessary: the runtime is quite small, and AFAIK does not make
> use of 1.5 features.
>
> Would it be possible to change the compilation of the abc-runtime back
> to target=1.2? Is there a reason for target=1.5 that I'm missing?
>
> (Edit: Actually, target=1.2 is too much, because the tm codegen does
> use 1.4 features, namely java.util.LinkedHashSet.)
>
> Ondrej
>
>
-- Eric Bodden Sable Research Group McGill University, Montréal, CanadaReceived on Thu Jul 05 15:37:39 2007
This archive was generated by hypermail 2.1.8 : Thu Jul 05 2007 - 18:10:09 BST