eclipse

Bruno Van Den Bossche brvdboss at spymac.com
Fri Apr 1 14:53:49 PST 2005


Alex Varju wrote:
> Bruno Van Den Bossche wrote:
> 
>> Some little remarks:
>>
>> In patch-build.xml you're using the linux-sun-jdk lib-dir.  Is tehre a 
>> special reason for this?  It seems to work just fine  (well almost, 
>> see below) with the native jdk, so I see no real reason to do this.
>>
>> +               <fileset dir="/usr/local/linux-sun-jdk1.4.2/jre/lib">
>>
>> I don't have a linux-jdk installed anymore, else I probably never 
>> would have noticed :)
> 
> 
> The build failure you quote below is the reason that I'm using the 1.4.2 
> libraries here.  Eclipse does part of the build using their 
> JDTCompilerAdapter, which only supports Java 1.4.  Apparently Java 1.5 
> allows subclasses to refine a method's return type, and this feature is 
> used withing the core libraries.  JDTCompilerAdapter fails to compile 
> FeatureWriter because of this.

Ah, I see.  I'm not really familiar with the eclipse build-structure.

> Until Eclipse supports native 1.5 builds, I'm not sure that there's 
> anything we can do to improve things.

I've been staring a bit at it but can't really come up with a solution. 
  The naïve me assumed the specified "target" and "source" options would 
be taking care of issues like that.

I did check to make sure they are set to appropriate values everywhere, 
which seems to be the case.

Doing that pde.build-part manually and continuing the build (without 
cleaning first ofcourse) seems to get me a working eclipse though. 
However that doesn't seem to be a decent path for a workaround though.

Still, I'm very glad you got the port working :)


Bruno


More information about the freebsd-java mailing list