Bug 100836 - Allow some Java 1.5 source features in older JVM
Summary: Allow some Java 1.5 source features in older JVM
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1 RC4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 10:55 EDT by David Pérez CLA
Modified: 2005-06-20 17:40 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 David Pérez CLA 2005-06-20 10:55:54 EDT
I have some target environments where the most up-to-date JVM is 1.3 or 1.4.
So I can't use any new 1.5 features.  :-(

Could it be possible to have some useful new 1.5 features like 
- autoboxing and 
- enhanced for loop 
be available also for 1.3 or 1.4 target JVM?

Technically I don't see any obstacle for getting this.

If I try to set the compliance levels of the Java compiler to

-source compatibility: 1.5
-generated class file compatibility: 1.4

I'm not allowed to.
Comment 1 Philipe Mulet CLA 2005-06-20 17:40:20 EDT
There is no plan to invest into this direction.
However, pls look at http://retroweaver.sourceforge.net/