Bug 27597 - Ant adapter on a 1.4 JVM sets the target to be 1.4
Summary: Ant adapter on a 1.4 JVM sets the target to be 1.4
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-03 12:46 EST by Olivier Thomann CLA
Modified: 2002-12-17 12:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2002-12-03 12:46:49 EST
This is a bug in the batch compiler. Ant adapter sets the compliance level to
1.4 when running on a 1.4 VM. The batch compiler sets the target according to
the compliance level.
It should not be done that way. Setting the compliance level should not have any
side-effect on the target platform.
Comment 1 Olivier Thomann CLA 2002-12-03 12:47:12 EST
Set title.
Comment 2 Olivier Thomann CLA 2002-12-03 13:55:22 EST
Now we don't set the source level neither the target platform, when we set the
compliance level.
-1.4 => generate by default target 1.2 when running on a 1.4 VM and target 1.1
when running on VM < 1.4.
-source 1.4 => target = 1.4 and compliance 1.4
-source 1.3 => generate by default target 1.2 when running on a 1.4 VM and
target 1.1 when running on VM < 1.4 and compliance 1.3

I released this change in 2.1 stream.
Comment 3 David Audel CLA 2002-12-17 12:07:10 EST
Verified.