Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » is eclipse 2.1.2 compatible with java 1.5.0 beta?
is eclipse 2.1.2 compatible with java 1.5.0 beta? [message #210752] Sat, 13 March 2004 00:08 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.smith70.plus.com

I am trying out the new Java beta 1.5.0 with eclipse 2.1.2 and I am
getting some unexpected errors against some lines of code see end of
posting for sample code. This code compiles ok against Java 1.4.2

is eclipse 2.1.2 compatible with java 1.5.0 beta?



public class StringBufferSample
{
public static void test1()
{
StringBuffer sb = new StringBuffer();
sb.append('c');
// unhandled exception type IOException
}

public static void test2()
{
StringBuffer sb1 = new StringBuffer();
sb1.append("c").append("c");
// type AbstractStringBuilder is not visible


StringBuffer sb2 = new StringBuffer().append('c');
// Type mismatch: cannot convert from Appendable to StringBuffer


StringBuffer sb3 = new StringBuffer().append("c");
// Type mismatch: cannot convert from AbstractStringBuilder to
StringBuffer
}
}
Re: is eclipse 2.1.2 compatible with java 1.5.0 beta? [message #210825 is a reply to message #210752] Sat, 13 March 2004 10:07 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
no.

they are working on this in the 3.0 stream.

johan


David Smith wrote:

> I am trying out the new Java beta 1.5.0 with eclipse 2.1.2 and I am
> getting some unexpected errors against some lines of code see end of
> posting for sample code. This code compiles ok against Java 1.4.2
>
> is eclipse 2.1.2 compatible with java 1.5.0 beta?
>
>
>
> public class StringBufferSample
> {
> public static void test1()
> {
> StringBuffer sb = new StringBuffer();
> sb.append('c');
> // unhandled exception type IOException
> }
>
> public static void test2()
> {
> StringBuffer sb1 = new StringBuffer();
> sb1.append("c").append("c");
> // type AbstractStringBuilder is not visible
>
>
> StringBuffer sb2 = new StringBuffer().append('c');
> // Type mismatch: cannot convert from Appendable to StringBuffer
>
>
> StringBuffer sb3 = new StringBuffer().append("c");
> // Type mismatch: cannot convert from AbstractStringBuilder to
> StringBuffer
> }
> }
>
>
>
Re: is eclipse 2.1.2 compatible with java 1.5.0 beta? [message #210895 is a reply to message #210752] Sat, 13 March 2004 14:51 Go to previous message
Marc Dzaebel is currently offline Marc DzaebelFriend
Messages: 10
Registered: July 2009
Junior Member
"David Smith" <eclipse@smith70.plus.com> schrieb im Newsbeitrag
news:c2tjdo$gm9$1@eclipse.org...
> I am trying out the new Java beta 1.5.0 with eclipse 2.1.2 and I am
> getting some unexpected errors against some lines of code see end of
> posting for sample code. This code compiles ok against Java 1.4.2

this is patched in the last integration build but it has some other flaws.
So currently, it's a waste of time to try it. Wait for M8.

Marc
Previous Topic:How can I programmatically get version of my plugin?
Next Topic:Illegal attempt to change read-only plug-in manifest model
Goto Forum:
  


Current Time: Thu Nov 21 12:03:01 GMT 2024

Powered by FUDForum. Page generated in 0.05564 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top