Bug 48462 - Insists that target is 1.2 while it is 1.4
Summary: Insists that target is 1.2 while it is 1.4
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 98
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 03:24 EST by J.F.Lanting CLA
Modified: 2003-12-15 11:30 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 J.F.Lanting CLA 2003-12-11 03:24:17 EST
Using ECLIPSE 3.0 M5 + JAVA 1.4.2_03 I target everything default (1.4).

On my W98, since I upgraded simultaneously from ECLIPSE 2.1.2 + JAVA 1.4.2 to 
(as mentioned) and since I marked warning for incompatible binaries (I just 
warn for anything) because that seems OK on W2000, ECLIPSE flags warnings on 
every class file produced as being targeted on 1.2 but (of course) built 
against 1.4
Setting the preferences to target to 1.3 (can't even set them to 1.2) the 
complaints change into: targeted on 1.1 but built against 1.3
Could this be a W98 problem or a 1.4.2_03 incompatibility?
;JOOP!
Comment 1 Philipe Mulet CLA 2003-12-15 11:30:06 EST
This warning tells you that you are compiling against libraries tagged as 1.4, 
but you currently will generate binaries which are targeting a lesser JRE level.
You can turn off this warning if you want, but you can address this by raising 
your class files level as follows :

Preferences>Java>Compiler>Compliance and Classfiles>JDK Compliance
   >Compiler compliance level> 1.4
   >Generated .class files compatibility> 1.4

This warning is flagged against the referring project, not against generated 
files. Also, if you believe you don't need these offending libraries, you could 
also exclude them from the installed JRE directly (under 
Preferences>Java>Installed JREs>...).