Bug 81805 - [1.5][compiler] Create a mode which supports source=1.5 to class=1.4 compilation
Summary: [1.5][compiler] Create a mode which supports source=1.5 to class=1.4 compilation
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154113
  Show dependency tree
 
Reported: 2004-12-22 14:01 EST by Victor Toni CLA
Modified: 2009-08-30 02:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Toni CLA 2004-12-22 14:01:16 EST
Right now it's not officially supported (either by the JDT compiler or SUN) to
compile 1.5 code for 1.4 use (javac -source 1.5 -target jsr14)
However it works when tampering with property files.

There are multiple reasons to NOT support this:
 - code might have covariance
 - code might have annotations
 - code might have enums

Scenario when it will work:
 - code uses generics
 - code uses new "for" loop

Depends on case to case:
 - autobxing / unboxing

However most of these futures won't be used regulary.
From my experience (which doesn't mean much :-)  generics and the new "for" will
be the most used new features.

A lot of people have legacy support for older platforms, but would like to clear
up their code. This is not possible at the moment in a supported way, because
there is no official mode for compiling source=1.5 with class=1.4.

I would appreciate such a feature, which moves the complexity from the
user/programmer into the compiler and would save many hours.
Comment 1 Frederic Fusier CLA 2004-12-22 15:36:18 EST
see bug 79392 for initial discussion about this issue...
Comment 2 Philipe Mulet CLA 2005-03-08 18:22:36 EST
defer
Comment 3 Victor Toni CLA 2005-08-09 10:24:09 EDT
Now that 3.1 is out of the door would you consider this as a feature for 3.2?
Comment 4 Victor Toni CLA 2006-11-16 08:02:17 EST
Should this not be reopened for 3.3?
Comment 5 Eclipse Webmaster CLA 2009-08-30 02:39:16 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.