aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse : Java Compliance Level 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse : Java Compliance Level 5.0" Watch "Eclipse : Java Compliance Level 5.0" New topic
Author

Eclipse : Java Compliance Level 5.0

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
what is the significance of Java Compliance Level : 1.5/5.0 in eclipse ?

What if i set this to 1.5 and not 5.0 ?

thanks in advance....

Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Same result. 5.0 is a synonym of 1.5.


[My Blog]
All roads lead to JavaRanch
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Same result. 5.0 is a synonym of 1.5.

I think, you didn't understand my question. i'm asking why the compiler throughs error sometimes if i use generics, etc if i do not switched to 5.0 from 1.5 in eclipse?
Is there anything related to JDK ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

If the Compiler Compliance Level is not at 1.5 or later, then 1.5-level features get flagged as errors. And for me the Compiler Compliance Level drop-down offers the choices of 1.6, 1.5, 1.4, and 1.3 (5.0 is not an option). So where are you seeing the 5.0?

What version of Eclipse are you running?


JBoss In Action
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
thanks for your response but there are other options such as 5.0, 6.0 etc. See the atachment for more understanding.


[Download 1.bmp] Download

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Which version of Eclipse are you running? I looked in 3.5 and 3.6 and in both the compiler compliance levels are 1.3, 1.4, 1.5 and 1.6.
Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
its eclipse 3.2 version
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

That would explain it. You might consider upgrading to a more recent version of Eclipse.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse : Java Compliance Level 5.0