On Thu, Jul 05, 2007 at 10:37:36AM -0400, Eric Bodden wrote:
> 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.
The javac I have does not do this. It is Sun's javac 1.5.0_07.
> 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, Canada
>
Received on Thu Jul 05 18:03:51 2007
This archive was generated by hypermail 2.1.8 : Thu Jul 05 2007 - 20:20:09 BST