• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse : Java Compliance Level 5.0

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same result. 5.0 is a synonym of 1.5.
 
Vinod Vinu
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 852 Kbytes
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its eclipse 3.2 version
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That would explain it. You might consider upgrading to a more recent version of Eclipse.
reply
    Bookmark Topic Watch Topic
  • New Topic