This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse : Java Compliance Level 5.0

 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same result. 5.0 is a synonym of 1.5.
 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Vinod Vinu
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your response but there are other options such as 5.0, 6.0 etc. See the atachment for more understanding.
Filename: 1.bmp
Description: compliance level screenshot
File size: 832 Kbytes
[Download 1.bmp] Download Attachment
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its eclipse 3.2 version
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would explain it. You might consider upgrading to a more recent version of Eclipse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic