is eclipse 2.1.2 compatible with java 1.5.0 beta? [message #210752] |
Sat, 13 March 2004 00:08 |
Eclipse User |
|
|
|
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
}
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05564 seconds