[eclipse-maintainers] Re: Eclipse 3.0 Running on Kaffe

Karl Trygve Kalleberg karltk@gentoo.org
Tue, 18 Jan 2005 16:17:41 +0100


Grzegorz B. Prokopski wrote:
> On Sun, 2005-16-01 at 11:35 -0600, Jerry Haltom wrote:
> 
>>I'd agree with the Eclipse developers. Some of the things Jikes
>>complains about are unreasonable to be maintained and worked around
>>upstream. At this point it's really a crappy compiler for production
>>code.
>>
>>kjc however is just good enough to do with we need, with only a few
>>adjustments of import statements.
> 
> 
> As far as I understood kjc is only used to compile ejc and then ejc is
> used to comile Eclipse, is that right?
> 
> 
>>How about you run kjc with SableVM?
> 
> 
> I looked at the instructions at 
> http://sab39.dev.netreach.com/Blog/12?pm=18&vobId=141
> and within few minutes I had compiled the CVS version of ejc compiler
> using jikes-sablevm wrapper, then used ejc in Java 1.5 mode to compile
> a simple HelloWorld program.
> 
> Strangely though, I got java.lang.UnsupportedClassVersionError when
> I tried to run it on SableVM.  I am pretty sure our version check is
> simply too restrictive and this is probably the only thing we need
> to change to make it work  (I'll take a closer look at it around
> wednesday evening).

You can probably force ejc to compile Hello World as a 1.4 or earlier 
program. As you probably know the regular javac in 1.5 only does this if 
you do -source 1.4 (and -target 1.4).

I'm told there are minor differences in the way string literals are 
compiled between 1.4 and 1.5, and that the 1.5 way relies on some 
particularities of the java.lang implementation that were added between 
1.4 and 1.5.

AFAIK, neither the bytecode or any other other part of the .class file 
formats have changed.


-- Karl T