Hi
I'm wondering if abc supports Java 5 syntax completely. I've tried to
compile a piece of code that contains a method overriding a the
"toString()" method. This method is annotated with an @Override tag.
========================================================================v
public class UserManager{
//...
@Override
public String toString() {
return "the relevent string";
//...
}
========================================================================^
what I get when I compile the code using a -source 1.5 option is an
error message as follow:
========================================================================v
UserManager.java:46:
Illegal character "@"
@Override
^
UserManager.java:47:
Syntax error: unexpected public.
public String toString() {
^----^
2 errors.
========================================================================^
Is there anything special that I should do?
Thanks in advance
Meisam
Received on Sat Jan 10 2009 - 13:45:05 GMT
This archive was generated by hypermail 2.2.0 : Sat Jan 10 2009 - 14:20:11 GMT