Bug 27597

Summary: Ant adapter on a 1.4 JVM sets the target to be 1.4
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.