Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » .class vs source compilance level
.class vs source compilance level [message #241916] Sat, 24 March 2007 10:49 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Eclipse doesn't allow one to set the class compilance to 1.4 and the
source compilance to 5.0, until today I thought this is perfectly the
right thing, but then found out that I can use 5.0 features and still
compile to 1.4 source level or do I read the following article in a
wrong way:

http://www-128.ibm.com/developerworks/java/library/j-jtp0227 7.html

Why is it somehow possible to use the undocumented -target jsr14 feature
in eclipse's compiler settings? I already read
http://www.masutti.ch/eel/ and ask myself why eclipse doesn't support
this setting out of the box?

Tom
Re: .class vs source compilance level [message #241922 is a reply to message #241916] Sat, 24 March 2007 12:25 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Tom Schindl a écrit :
> Why is it somehow possible to use the undocumented -target jsr14 feature
> in eclipse's compiler settings? I already read
> http://www.masutti.ch/eel/ and ask myself why eclipse doesn't support
> this setting out of the box?
This settings doesn't allow you to emulte all 1.5 features (no enums, no
for each statements). It makes more sense to actually get 1.5 .class
files if you are using 1.5 features.
--
Olivier
Re: .class vs source compilance level [message #241946 is a reply to message #241922] Sun, 25 March 2007 16:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Olivier,

I know but I can easily live without these features. What I want are
things like generics which are compatible with 1.4 class files, if you
are a library developer like I am and want to provide an API using
generics but also support 1.4.

If eclipse doesn't allow me to the set .cass level and export my files
using the export wizard. I need to write my own build.xml to make this
happen, for unit-testing it's the same, ... .

Isn't it acceptable to add the jsr14 to the list of .class-File options?

Tom

Olivier Thomann schrieb:
> Tom Schindl a écrit :
>> Why is it somehow possible to use the undocumented -target jsr14
>> feature in eclipse's compiler settings? I already read
>> http://www.masutti.ch/eel/ and ask myself why eclipse doesn't support
>> this setting out of the box?
> This settings doesn't allow you to emulte all 1.5 features (no enums, no
> for each statements). It makes more sense to actually get 1.5 .class
> files if you are using 1.5 features.
> --
> Olivier
Re: .class vs source compilance level [message #241950 is a reply to message #241946] Mon, 26 March 2007 13:38 Go to previous message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Tom Schindl a écrit :
> I know but I can easily live without these features. What I want are
> things like generics which are compatible with 1.4 class files, if you
> are a library developer like I am and want to provide an API using
> generics but also support 1.4.
> If eclipse doesn't allow me to the set .cass level and export my files
> using the export wizard. I need to write my own build.xml to make this
> happen, for unit-testing it's the same, ... .
> Isn't it acceptable to add the jsr14 to the list of .class-File options?
I haven't tried this setting. I'll see if this is possible.
--
Olivier
Previous Topic:Can Eclipse be configured to run an applet in the local host default browser?
Next Topic:How does Eclipse generate code??
Goto Forum:
  


Current Time: Sat Apr 27 03:22:07 GMT 2024

Powered by FUDForum. Page generated in 0.02640 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top