Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / January 2005

Tip: Looking for answers? Try searching our database.

What's up with Eclipse and Java 1.5?

Thread view: 
markscottwright@gmail.com - 07 Jan 2005 19:22 GMT
Can anyone explain to me the apparently only-partial support for java
1.5 in Eclipse (3.1m4)?  Legal 1.5 code fails in Eclipse - autoboxing
specifically seems problematic.  Why would that happen?  Isn't eclipse
using my java 1.5 sdk when it does its builds? For example, this code
compiles just fine from the command line:

String theStr = null;
Integer theInt = theStr == null ? 1 : null;
System.out.println("theInt=" + theInt)

But when I throw it into an Eclipse scrap page (for example) and try to
compile and execute it, I get the following error:

Incompatible conditional operand types int and null

My "compiler compliance level" is set to 5.0.  My Installed JRE is set
to the same JRE used by my command-line builds.
(Is there a better place to ask this?)
markscottwright@gmail.com - 07 Jan 2005 19:43 GMT
OK - I just answered my own question.  Looks like eclipse has its own
compiler and it isn't fully 1.5 compatible yet.
Ilias Lazaridis - 08 Jan 2005 13:16 GMT
> OK - I just answered my own question.  Looks like eclipse has its own
> compiler and it isn't fully 1.5 compatible yet.

yes, this is right.

The IBM team does it's best to "close all open Issues", but doing so
within the Issue-Tracking-System is not enouth:

[ECLIPSE] [CENSORSHIP] - Mike Milinkovich (Eclipse Foundation Director)
Censors Forums
http://groups-beta.google.com/group/comp.lang.java.softwaretools/msg/ff9ba79be816921d

.

Signature

http://lazaridis.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.